I need help, guys. I have a bee. When the bee enters the room, a "turn script" starts. Now, I want to have different messages turn after turn of the player until the turn script stops. Examples: After 10 turns: "The bee is on the wall" After 17 turns: "The bee is on the oven" and so on.
Then, when the turn script stops, of course, no messages anymore.
Please help.
Pertex
07 Jun 2012 15:05
Create a turnscript within your room:
Don't forget to add an integer attribute named 'counter' to your room!
timetolose
07 Jun 2012 15:22
Thank you very much, Pertex. It works for entire game, as well if I set both the integer attribute and the turnscript under "game"!
timetolose
13 Jun 2012 09:39
Ok, it works. But when I disable the turnscript, how can I stop/disable also the "counter" setting it forever, say, to 42 and stop?
Pertex
13 Jun 2012 14:02
If you disable the turnscript the script will not be executed and so the variable will not increased any more. And you can set it with set variable [room.counter] = expression [1]
timetolose
13 Jun 2012 14:15
Pertex, you are very kind. Thanks for your help, always perfect and quick!