Juhana wrote:
You need a bit of math for the "every X turns" thing.
Code:
Every turn when the remainder after dividing the turn count by 5 is 0:
say "Ding!"
You could use a variable or scenes, but this is the one-liner solution.
That's very nice and simple. However, I think I need variables as I need to track each character individually and not have them all speak at once.
Here is my
broken code below, as I attempt to wrap my head around assigning a variable to characters, searching through them all, and altering that variable.
Code:
Anders has a number called babble.
Every turn:
repeat with temp running through people who are not the player:
[somehow check to see if the player can see the temp character]
increase the babble [temp] by 1;
[if the babble temp is 4 then]:
[say a random phrase];
[reset the temp's babble to 0].
Am I on the right track here?
Tom / Hardwater