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


Caravel Forum : DROD Boards : Architecture : Question in UrAvgAzn's sig
New Topic New Poll Post Reply
Poster Message
schep
Level: Smitemaster
Avatar
Rank Points: 865
Registered: 03-01-2005
IP: Logged

File: Direction choice script demo.hold (1.7 KB)
Downloaded 50 times.
License: Public Domain
icon Question in UrAvgAzn's sig (0)  
Here's a place to post my sample script. Works for me. Or post a room that's not working and somebody will certainly take a look.
11-15-2006 at 12:45 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
UrAvgAzn
Level: Smiter
Avatar
Rank Points: 468
Registered: 04-15-2006
IP: Logged

File: Room.hold (2.2 KB)
Downloaded 44 times.
License: Public Domain
icon Re: Question in UrAvgAzn's sig (0)  
Thanks Schep. Here's the room, but I can't get the guy to go the other way.

Keep posting,

____________________________
"The leaf, still green, must someday fall.
Such grief, such joy, to live at all."
- T.A. Barron, The Lost Years of Merlin
11-19-2006 at 09:40 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
schep
Level: Smitemaster
Avatar
Rank Points: 865
Registered: 03-01-2005
IP: Logged
icon Re: Question in UrAvgAzn's sig (0)  
You need a
Wait 1 turn(s)
command somewhere in the Direction Loop part. Without that, it gets stuck in an infinite loop where the character is testing whether Beethro is in rectangle A or B over and over again, all during the same turn. After a few cycles, DROD figures out it's never going to finish and gives up on trying to run the script during this visit to the room. The Wait command fixes things so that he checks each rectangle once, waits for the next turn, checks again, and so on. I added the above command just before 'Go to "Direction Loop"', and the guard starts moving okay. He then gets stuck on roaches, but that's easily fixed by setting a more specific path or moving a few roaches.
11-19-2006 at 11:15 PM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
Jason
Level: Smitemaster
Rank Points: 1076
Registered: 05-05-2006
IP: Logged
icon Re: Question in UrAvgAzn's sig (0)  
Or if you have version 2.0.15 then you can use wait 0 which has the same effect but checks every turn instead of waiting one turn after each check.

____________________________
Play my holds?
11-20-2006 at 09:57 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
schep
Level: Smitemaster
Avatar
Rank Points: 865
Registered: 03-01-2005
IP: Logged
icon Re: Question in UrAvgAzn's sig (0)  
Oh yeah, that, if you like. But there is absolutely no difference between Wait 0 and Wait 1, except that Wait 0 currently won't work right for players with older DROD versions.

[Last edited by schep at 11-20-2006 02:06 PM]
11-20-2006 at 02:04 PM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Architecture : Question in UrAvgAzn's sig
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.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.