View previous topic :: View next topic |
Author |
Message |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Wed Feb 09, 2011 11:12 am Post subject: checking if there are heroes in the party slots |
|
|
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 |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Feb 09, 2011 1:44 pm Post subject: |
|
|
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 |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Thu Feb 10, 2011 5:06 am Post subject: |
|
|
Cool, thanks James! _________________ So many ideas, so little focus. Monk spirit please lend me your power!
 |
|
Back to top |
|
 |
|