Turn Script and messages

timetolose
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
Create a turnscript within your room:
bee.png


Don't forget to add an integer attribute named 'counter' to your room!

timetolose
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
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
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
Pertex, you are very kind.
Thanks for your help, always perfect and quick!

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums