View previous topic :: View next topic |
Author |
Message |
AppleStem I Like Apples and Stems

Joined: 03 Sep 2009 Posts: 9 Location: Castle of Paradox
|
Posted: Tue Oct 06, 2009 2:13 pm Post subject: tags in plotscripts |
|
|
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 |
|
 |
Newbie_Power

Joined: 04 Sep 2006 Posts: 1762
|
Posted: Tue Oct 06, 2009 2:19 pm Post subject: |
|
|
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 |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Tue Oct 06, 2009 2:21 pm Post subject: |
|
|
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 |
|
 |
AppleStem I Like Apples and Stems

Joined: 03 Sep 2009 Posts: 9 Location: Castle of Paradox
|
Posted: Tue Oct 06, 2009 2:33 pm Post subject: |
|
|
yes this is more than im was looking for thanks  |
|
Back to top |
|
 |
|