Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : General : A little help with Builders
New Topic New Poll Post Reply
Poster Message
calamarain
Level: Smitemaster
Avatar
Rank Points: 933
Registered: 03-25-2007
IP: Logged
icon A little help with Builders (0)  
Trying to get Builders to work properly. What I want to do is the following.

I want two squares. (they're marked). When you step on one, an area is set Build Marker Water. When you step on the other, the area is set Build Marker Bridge. This I can do. What I can't seem to do is make it regenerating. I have the following on each of them .

Label "Loop"
Wait for entity Player at (32,12)-(32,12)
Build marker Water at (7,11)-(23,22)
Go to "Loop"


Label "Loop"
Wait for entity Player at (32,16)-(32,16)
Build marker Bridge at (7,11)-(23,22)
Go to "Loop"


When I step on the Water square, they start building water. When I then step onto the Bridge square, they switch to bridge. But when I step back onto the water square, they don't switch back.

Can people assist?

____________________________
My Holds
Click here to view the secret text

09-21-2007 at 11:12 PM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
Jeff_Ray...
Level: Smitemaster
Avatar
Rank Points: 962
Registered: 05-16-2005
IP: Logged
icon Re: A little help with Builders (0)  
Here's what to do:

Label "Loop"
Wait for entity Player at (32,12)-(32,12)
Build marker Water at (7,11)-(23,22)
Go to "Loop"

Label "Loop"

Wait for entity Player at (32,16)-(32,16)
Build marker Bridge at (7,11)-(23,22)
Go to "Loop"

Red means to delete. Of course, it's only a little guess...

____________________________
I make Let's Plays too!
Click here to find out my LPs' progress, and find out what I plan to tackle next!

Currently playing:
Click here to view the secret text


My Holds:
-Completed:
Click here to view the secret text

-Work in Progress:
Click here to view the secret text

09-21-2007 at 11:14 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
calamarain
Level: Smitemaster
Avatar
Rank Points: 933
Registered: 03-25-2007
IP: Logged
icon Re: A little help with Builders (0)  
NPC 1

Label "Loop"
Wait for entity Player at (32,12)-(32,12)
Build marker Water at (7,11)-(23,22)
Go to "Loop"



NPC 2

Label "Loop"
Wait for entity Player at (32,16)-(32,16)
Build marker Bridge at (7,11)-(23,22)
Go to "Loop"

My apologies - I didn't explain right. Those aren't the same NPC - they're separate NPCs. I still don't see the problem - both NPCs should loop forever, and set the build marker when Beethro steps on the square. Can they only set build markers once?

____________________________
My Holds
Click here to view the secret text


[Last edited by calamarain at 09-21-2007 11:18 PM]
09-21-2007 at 11:16 PM
View Profile Send Private Message to User Send Email 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: A little help with Builders (+2)  
Are there recent "infinite loop" messages in your drod.err or drod.log file? Try adding "Wait 0 turn(s)" commands to each loop. Even if there aren't messages in your logs, try that anyway and see if it helps.

[Last edited by schep at 09-21-2007 11:26 PM]
09-21-2007 at 11:26 PM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
calamarain
Level: Smitemaster
Avatar
Rank Points: 933
Registered: 03-25-2007
IP: Logged
icon Re: A little help with Builders (0)  
schep wrote:
Are there recent "infinite loop" messages in your drod.err or drod.log file? Try adding "Wait 0 turn(s)" commands to each loop. Even if there aren't messages in your logs, try that anyway and see if it helps.
Ah, that'll be it. Thanks :)

____________________________
My Holds
Click here to view the secret text

09-21-2007 at 11:40 PM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: A little help with Builders (+1)  
calamarain wrote:
Ah, that'll be it. Thanks :)
The "problem" here is that a wait on a condition that is fulfilled on a specific turn will always always succeed when encountered in the same turn, so the script engine bails out after a certain number of loops (or rather, instructions) to prevent it from turning into an infinite loop and making the game hang. That's where the "wait 0 turns" to actually wait for the next turn comes in...

np: The Field - A Paw In My Face (From Here We Go Sublime)

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
09-22-2007 at 12:22 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : General : A little help with Builders
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.