In the introductory part of this IF I’m working on, there’s something that needs to be mentioned only after being in a room for three turns; but only once. After three turns doesn’t seem to work, at all, so I’m wondering what I should do!
I’ve tried properly looking for answers, but I can’t find anything ^^;
If you want it mentioned every time it’s been present for exactly three turns (but not on the fourth, fifth, sixth, etc. turns):
[code]The Front Drive is a room.
The dog bone is carried by the player.
Every turn when the dog bone has been in Front Drive for exactly three turns:
say “That bone has been here for three turns.”
Test me with “z / z / z / z / drop bone / z / z / z / z / get bone / z / z / z / drop bone / z / z / z /z”.[/code]
If you want it mentioned only once ever, after being present three turns:
[code]The Front Drive is a room.
The dog bone is carried by the player. The dog bone can be advertised or unadvertised.
Every turn when the dog bone has been in Front Drive for exactly three turns:
if the bone is unadvertised:
say “That bone has been here for three turns.”;
now the bone is advertised.
Test me with “z / z / z / z / drop bone / z / z / z / z / get bone / z / z / z / drop bone / z / z / z /z”.
[/code]