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

simple script set up

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




Joined: 03 Aug 2008
Posts: 74

PostPosted: Thu Sep 10, 2009 7:32 pm    Post subject: simple script set up Reply with quote

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
View user's profile Send private message
Awful Waffle




Joined: 18 Jun 2003
Posts: 73
Location: Canada

PostPosted: Fri Sep 11, 2009 4:40 am    Post subject: Reply with quote

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




Joined: 03 Aug 2008
Posts: 74

PostPosted: Fri Sep 11, 2009 7:41 am    Post subject: ahhh i see Reply with quote

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