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

tags in plotscripts

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
AppleStem
I Like Apples and Stems




Joined: 03 Sep 2009
Posts: 9
Location: Castle of Paradox

PostPosted: Tue Oct 06, 2009 2:13 pm    Post subject: tags in plotscripts Reply with quote

how do you switch a script with a tag? example: if tag:something is on then do that script instead.

or something like that
Back to top
View user's profile Send private message Visit poster's website
Newbie_Power




Joined: 04 Sep 2006
Posts: 1762

PostPosted: Tue Oct 06, 2009 2:19 pm    Post subject: Reply with quote

You'll want to use an if statement and check tag:

Code:
if (check tag(tag:something) == on) then (
   thisotherscript
)
else
(
   scriptyouuseiftagisoff
)

_________________

TheGiz> Am I the only one who likes to imagine that Elijah Wood's character in Back to the Future 2, the kid at the Wild Gunman machine in the Cafe 80's, is some future descendant of the AVGN?
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: Tue Oct 06, 2009 2:21 pm    Post subject: Reply with quote

Is this what you are looking for?

Code:

plotscript, main script, begin
  if(check tag(tag:have magic key) == ON) then(
     open door with magic key
  )else(
     pound on door with fist
  )
end

plotscript, open door with magic key, begin
end

plotscript, pound on door with fist, begin
end


EDIT: oops! Newbie Power is too fast for me! :)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
AppleStem
I Like Apples and Stems




Joined: 03 Sep 2009
Posts: 9
Location: Castle of Paradox

PostPosted: Tue Oct 06, 2009 2:33 pm    Post subject: Reply with quote

yes this is more than im was looking for thanks Happy
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