View previous topic :: View next topic |
Author |
Message |
alphawolf
Joined: 17 Aug 2012 Posts: 33 Location: South Carolina, America
|
Posted: Tue Sep 11, 2012 5:21 pm Post subject: Yet another need of help.. :D |
|
|
Alright, is there any way through plotscripting that I can check to
see if a player is in the main party? Not just that they are in the
party, but that they are part of the four lineup in battle?
#and note: I seem to be the only one here who needs help anymore haha, I feel like a n00b _________________ #AlphaWolf#
http://societyofdreamers.webs.com/ <-- poetry forum, visit if you'd like, it's almost as dead as this forum (hehe) but it's just started.
##Contact at cckisby-SPAM@gmail.com#
#Remove the -SPAM above to prove you're# #not a spambot :/##
##AlphaWolf Studios## |
|
Back to top |
|
|
Bob the Hamster OHRRPGCE Developer
Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Tue Sep 11, 2012 6:10 pm Post subject: Re: Yet another need of help.. :D |
|
|
Try this:
Code: |
script, hero is in the party, who, begin
# who - the id number or the hero:Name constant
variable(slot)
slot := find hero(who)
if(slot << 0) then(exit returning(false)) # not found
if(slot >> 3) then(exit returning(false)) # found in the reserve
exit returning(true)
end
|
|
|
Back to top |
|
|
alphawolf
Joined: 17 Aug 2012 Posts: 33 Location: South Carolina, America
|
Posted: Wed Sep 12, 2012 1:48 pm Post subject: |
|
|
Thanks! Would I have to include that each time I want to check, or
could I just call it using the script name? _________________ #AlphaWolf#
http://societyofdreamers.webs.com/ <-- poetry forum, visit if you'd like, it's almost as dead as this forum (hehe) but it's just started.
##Contact at cckisby-SPAM@gmail.com#
#Remove the -SPAM above to prove you're# #not a spambot :/##
##AlphaWolf Studios## |
|
Back to top |
|
|
Bob the Hamster OHRRPGCE Developer
Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Sep 12, 2012 2:02 pm Post subject: |
|
|
use the script as if it is a new command:
Code: |
if(hero is in the party(hero:Bob)) then(
# do special stuff when bob is present
)
|
Of course, you can get the same effect using hero tags. |
|
Back to top |
|
|
alphawolf
Joined: 17 Aug 2012 Posts: 33 Location: South Carolina, America
|
Posted: Wed Sep 12, 2012 2:05 pm Post subject: |
|
|
yeah, I thought so. Thanks alot, though, that was part of a big part of my game haha _________________ #AlphaWolf#
http://societyofdreamers.webs.com/ <-- poetry forum, visit if you'd like, it's almost as dead as this forum (hehe) but it's just started.
##Contact at cckisby-SPAM@gmail.com#
#Remove the -SPAM above to prove you're# #not a spambot :/##
##AlphaWolf Studios## |
|
Back to top |
|
|
|