Replay MP turn
Posted: Tue Oct 02, 2012 12:35 pm
To my surprise I see that during replay, KILL_CALLBACK is called as if a normal turn were taken, and any variable affected by this functions is affected again.
For exemple in FUNCTION KILL_CALLBACK(id, side) during play turn…
counter = 1;
i = GetUniversalVar("GermanMorale") + counter;
During the turn, one unit is killed, the i = 1 and so the universal variable
BUT, when your opponent opens the turn and watch at the replay, the function is called again so, as GermanMorale was = 1 at the beginning of the replay, during replay a new kill is count so finally its value is 2. In the new version 2.0.6 (not tested) but probably its value will be incremented each time the opponent watch the movie of the turn.
For exemple in FUNCTION KILL_CALLBACK(id, side) during play turn…
counter = 1;
i = GetUniversalVar("GermanMorale") + counter;
During the turn, one unit is killed, the i = 1 and so the universal variable
BUT, when your opponent opens the turn and watch at the replay, the function is called again so, as GermanMorale was = 1 at the beginning of the replay, during replay a new kill is count so finally its value is 2. In the new version 2.0.6 (not tested) but probably its value will be incremented each time the opponent watch the movie of the turn.