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

Yet another need of help.. :D

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




Joined: 17 Aug 2012
Posts: 33
Location: South Carolina, America

PostPosted: Tue Sep 11, 2012 5:21 pm    Post subject: Yet another need of help.. :D Reply with quote

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 Ha ha ha!
_________________
#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
View user's profile Send private message Visit poster's website
Bob the Hamster
OHRRPGCE Developer




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

PostPosted: Tue Sep 11, 2012 6:10 pm    Post subject: Re: Yet another need of help.. :D Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
alphawolf




Joined: 17 Aug 2012
Posts: 33
Location: South Carolina, America

PostPosted: Wed Sep 12, 2012 1:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Bob the Hamster
OHRRPGCE Developer




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

PostPosted: Wed Sep 12, 2012 2:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
alphawolf




Joined: 17 Aug 2012
Posts: 33
Location: South Carolina, America

PostPosted: Wed Sep 12, 2012 2:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
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