Announcement: Why not try our official idea generator for inspiration when making puzzles?


Caravel Forum : DROD Boards : Architecture : Scripting Logic (AND type logic vs. OR type logic)
New Topic New Poll Post Reply
Poster Message
Azsedcf
Level: Goblin
Rank Points: 27
Registered: 04-05-2005
IP: Logged
icon Scripting Logic (0)  
This has probably been asked before but I looked and could not find anything.

The scripting lends itself to ‘sequence AND’ type logic.
Ex.
[Wait for (event 1)
[AND Then
[Wait for (Event 2)
[Now Do Stuff

The question is, is it possible to use OR type logic using the current scripting commands?

Ex.
[Wait for (event 1)
[OR
[Wait for (event 2)
[Now Do Stuff

If this does not make sense please ask and I will explain further.
08-20-2005 at 10:55 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
Doom
Level: Smitemaster
Avatar
Rank Points: 3336
Registered: 07-05-2004
IP: Logged
icon Re: Scripting Logic (+1)  
This should work for OR type scripts.
label "Loop"
if...go to "Activate"
Wait for (event#1)
if...go to "Activate"
Wait for (event#2)
Wait 1 turn
go to "Loop"

label "Activate"
(Do stuff)


[Last edited by Doom at 08-20-2005 11:04 AM]
08-20-2005 at 11:03 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Rabscuttle
Level: Smitemaster
Avatar
Rank Points: 2520
Registered: 09-10-2004
IP: Logged
icon Re: Scripting Logic (0)  
I think this should work.

Label "Loop"
If ... Goto "Stuff"
Wait For (Event 1)
If ... Goto "Stuff"
Wait For (Event 2)
Wait 1 Turn
Goto "Loop";
Label "Stuff"
Commands







[Last edited by Rabscuttle at 08-20-2005 11:08 AM]
08-20-2005 at 11:07 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Architecture : Scripting Logic (AND type logic vs. OR type logic)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.9
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.