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


Caravel Forum : DROD Boards : Architecture : Scripting Problem (Variable assignment)
New Topic New Poll Post Reply
Poster Message
bomber50
Level: Smitemaster
Rank Points: 872
Registered: 09-18-2006
IP: Logged
icon Scripting Problem (0)  
I have two variables, Variable A and Variable B.

Variable A equals 20 and Variable B equals 100, but these numbers change. I want that whenever they go on a certain square, Variable A will become the value of variable B. How could I do that?

[Last edited by mrimer at 08-08-2007 08:47 PM]
08-08-2007 at 05:47 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Monkey
Level: Master Delver
Avatar
Rank Points: 190
Registered: 03-21-2006
IP: Logged
icon Re: Scripting Problem (+1)  
A simple script.
Set varA=20
Set varB=100
Label "Loop"
Wait for Player at (x,y:x,y)
Set varA=varB
Wait 0 Turns
Go to "Loop"


____________________________
lurking

[Last edited by Monkey at 08-08-2007 06:13 PM]
08-08-2007 at 06:13 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
bomber50
Level: Smitemaster
Rank Points: 872
Registered: 09-18-2006
IP: Logged
icon Re: Scripting Problem (+1)  
Now I get what my problem was. I didn't need dollar signs surrounding the variables.

Thanks. :)
08-08-2007 at 06:16 PM
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 Problem (Variable assignment)
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.