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

checking if there are heroes in the party slots

 
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 Feb 09, 2011 11:12 am    Post subject: checking if there are heroes in the party slots Reply with quote

How do you write a script that checks if there are other heroes aside from the leader?

will be used for occasions like this:
The hero wants to duel the npc but as duels are supposed to be one on one, the npc will not accept the challenge if the check returns that the hero has companions.

if (who <> -1) then (#..)
*I understand that this checks for a certain hero in the whole party, but what if you just want to check if there's anyone in every slot apart from 0...

edit:
like this
text box: i'm here to challenge you, big samurai warrior!
textbox: hahaha then let's do this!
run script (check if alone)
if alone(textbox=fight enemy formation x)
if not alone(textbox=foolish hero, fight me alone if you dare!)
_________________
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 Feb 09, 2011 1:44 pm    Post subject: Reply with quote

Code:

if(room in active party == 3) then(
    fight formation(x)
)else(
   show text box(y) # foolish hero, fight me alone if you dare!
)
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: Thu Feb 10, 2011 5:06 am    Post subject: Reply with quote

Cool, thanks James!
_________________
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