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

Joined: 03 Aug 2008 Posts: 74
|
Posted: Thu Sep 10, 2009 7:32 pm Post subject: simple script set up |
|
|
I'm working on setting up a script where when you enter the castle it checks a tag if the tag is on the enemies are active in the castle if its off they are dormant.
heres my script see if you can help me a little with the format and setup
Code: | plotscript,castle,begin
if,(check tag,tag:castleenemies,off)
then,suspend random enemies
else,
end |
|
|
Back to top |
|
 |
Awful Waffle
Joined: 18 Jun 2003 Posts: 73 Location: Canada
|
Posted: Fri Sep 11, 2009 4:40 am Post subject: |
|
|
This should do it
Code: |
script, castle, begin
if( checkTag(tag:castleenemies) ) then
(
# tag is ON
resumeRandomEnemies
)
else
(
# tag is OFF
suspendRandomEnemies
)
end
|
|
|
Back to top |
|
 |
cavemanerick

Joined: 03 Aug 2008 Posts: 74
|
Posted: Fri Sep 11, 2009 7:41 am Post subject: ahhh i see |
|
|
So apprently the On and Off is implied already within the then and else i see thats a very useful thing to know for me thanks appreciate the help waffle. |
|
Back to top |
|
 |
|