Question: I was wondering what would be a good and clean way of detecting a change.
Situation:
Game has 5 rounds.
When a certain action is achieved, an action adds 1 to the variable "roundnumber".
Goal:
Start an event when roundnumber changes.
Own thoughts:
The game already has an action where the round number gets a +1-action, so I could use this event.
Or:
every tick: check if roundnumber =/= currentround (= variable as well)
If true: set currentround to roundnumber (start any event, as this is a trigger to a change of rounds)
Question:
But is there another way?
How would real programmers do it?