Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Reverting to default

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
BlastedEarth




Joined: 05 Oct 2009
Posts: 243

PostPosted: Wed Jan 27, 2010 7:42 am    Post subject: Reverting to default Reply with quote

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!

Back to top
View user's profile Send private message
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Wed Jan 27, 2010 10:10 am    Post subject: Reply with quote

There wasn't before, but there is now :)

The nightly wip now contains "reset hero picture" and "reset hero palette"
Back to top
View user's profile Send private message Send e-mail Visit poster's website
BlastedEarth




Joined: 05 Oct 2009
Posts: 243

PostPosted: Wed Jan 27, 2010 11:57 am    Post subject: Reply with quote

Ahaha now it works, thank you very much :-)
_________________
So many ideas, so little focus. Monk spirit please lend me your power!

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group