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


Caravel Forum : DROD Boards : Architecture : Repeating? (Quick question on scripting...)
New Topic New Poll Post Reply
Poster Message
The_Fang
Level: Goblin
Rank Points: 23
Registered: 06-09-2007
IP: Logged
icon Repeating? (0)  
I really liked how citizens kept on appearing and moving through the city in TCB, even after over 2000 turns there was still more that went around! So, I tried to do the same thing with my amazing city (in the making... hopefully it'll turn out great!) but at my horror there was no repeat script!

So I ask you, master architects (or anyone who can come up and tell me how, or when, or even who, though it won't solve the problem), how do we make a whole script repeatable?

P.S.: Don't worry, I'm not plagiarising TCB in any way. I have too much respect for that game to do so. :) (Not to mention I don't have money to lose in sue stuff or whatever.)

____________________________
"If you can't beat them, strike harder. If it doesn't work, do it again!"
"Little is known about huge things."
"The more you move your legs slower, the less you run faster."
06-13-2007 at 02:48 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Ezlo
Level: Smitemaster
Avatar
Rank Points: 1214
Registered: 01-08-2006
IP: Logged
icon Re: Repeating? (+1)  
One way is to use the "Goto" and "Label" commands. Make something that looks like this.

Label  RepeatLoop
(Insert all the stuff you want to repeat here.)
Goto  RepeatLoop


That should work.

[Last edited by Ezlo at 06-13-2007 02:56 AM]
06-13-2007 at 02:56 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
Monkey
Level: Master Delver
Avatar
Rank Points: 190
Registered: 03-21-2006
IP: Logged
icon Re: Repeating? (0)  
To make a citizen(at 3,0) walk 2 squares down, 3 squares right,, disappear, then reappear at a certain point, and do the cycle again:
Label "loop"
Move to (3,2)
Move to (0,2)
Disappear
Appear at (3,0)
Go to "loop"

In a nutshell, you put a label tag down, then when you want him/her to repeat it, put a Go To "(name of label)".
Hope that helps.
Edit: Post collision!


____________________________
lurking

[Last edited by Monkey at 06-13-2007 02:57 AM]
06-13-2007 at 02:57 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
The_Fang
Level: Goblin
Rank Points: 23
Registered: 06-09-2007
IP: Logged
icon Re: Repeating? (0)  
Thank you both, I won't forget to mention you in the credits. ;)

____________________________
"If you can't beat them, strike harder. If it doesn't work, do it again!"
"Little is known about huge things."
"The more you move your legs slower, the less you run faster."
06-13-2007 at 03:02 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
vinheim
Level: Smiter
Rank Points: 300
Registered: 05-31-2007
IP: Logged
icon Re: Repeating? (0)  
how do you guys make beethro invisible for a cutscene or make beethro move to certain places? for example where he gets a tour around the library in "the city beneath"

[Last edited by vinheim at 06-13-2007 01:27 PM]
06-13-2007 at 01:24 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Monkey
Level: Master Delver
Avatar
Rank Points: 190
Registered: 03-21-2006
IP: Logged
icon Re: Repeating? (+1)  
Put Player role "None" in a cutscene and put an NPC in the form of Beethro to appear and do stuff in the cutscene.

____________________________
lurking

[Last edited by Monkey at 06-13-2007 02:28 PM]
06-13-2007 at 02:26 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
vinheim
Level: Smiter
Rank Points: 300
Registered: 05-31-2007
IP: Logged
icon Re: Repeating? (0)  
yes! worked like a charm...
06-13-2007 at 06:40 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Neathro
Level: Delver
Avatar
Rank Points: 41
Registered: 04-24-2007
IP: Logged
icon Re: Repeating? (+1)  
Click here to view the secret text

Hope that helped...
Secreted to save some space.

____________________________
This is not a signature, it is a
collection of randomly selected
words. Teaspoon.

[Last edited by Neathro at 06-21-2007 05:31 PM : Thanks Ezlo :selftwak]
06-18-2007 at 06:58 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Ezlo
Level: Smitemaster
Avatar
Rank Points: 1214
Registered: 01-08-2006
IP: Logged
icon Re: Repeating? (0)  
Neathro wrote:
Secreted to save some space.

And yet you use text so big it cancels out the the secret tags? :huh
06-18-2007 at 03:50 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 : Repeating? (Quick question on scripting...)
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.