Pococurante
Chieftain
- Joined
- Dec 22, 2005
- Messages
- 40
I'm using Kael's (superb) modding guide to create a new feature that can change for all players (AI and human), very similar to Bhuir's TreeGrowth mod.
I can see my script in memory but it does not trigger when I end the turn. What am I doing wrong? Thx folks.
Edit: What I expect to see in Tuner are my print statements, that I was able to init constants and then see my handler print more comments every time I end the turn (and for every "player" AI or human). Tuner is set to mainstate, I end the turn, and see nothing.
I can see my script in memory but it does not trigger when I end the turn. What am I doing wrong? Thx folks.
Code:
function OnNextTurn()
print("Bouncing for Joy");
end
function Create()
IsDebug = true;
print("Happy happy");
end
Events.SerialEventTurnTimerDirty.Add(OnNextTurn);
-- Events.ActivePlayerTurnEnd.Add(OnNextTurn);
Create();
Edit: What I expect to see in Tuner are my print statements, that I was able to init constants and then see my handler print more comments every time I end the turn (and for every "player" AI or human). Tuner is set to mainstate, I end the turn, and see nothing.