BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Wed Jan 27, 2010 7:42 am Post subject: Reverting to default |
|
|
I'm trying to make a plotscript that changes the look of the hero when an armors are worn and revert to their original graphics if the armor is taken off. I found a script in the site that allows you to dress up a specific hero. but im thinking of a way to make any hero wear the armor and look different. *As this game is about mechs, pilots can ride different mechs and riding (equipping) different mechs make the graphics look different as well.
variable (Hero A,steelarmor)
set variable (Hero A, 0)
set variable (steelarmor,item:Steel)
while (true) do,begin
wait (1)
if ((check equipment (Hero A,2))==steelarmor)
then, begin
set hero picture (Hero A, 17, outside battle)
set hero palette (Hero A, 10, outside battle)
set hero picture (Hero A, 4, inside battle)
set hero palette (Hero A, 10, inside battle)
end
else, begin
set hero picture (default)
set hero palette (default)
set hero picture (default)
set hero palette (default)
end
*There, is there a certain command for "default" that makes them look in their basic graphics? I'm also thinking that when i write everything this way the armors will be set depending on equipment... Like equiping Magma armour, removes steel armor, and so on, it would be like that woudn't it? _________________ So many ideas, so little focus. Monk spirit please lend me your power!
 |
|