Scripting issues - Reload event
Has anyone been able to get the GameReloaded event working? I was following along Epistolary Richard's scripting tutorial, and simply made this change:
Quote:
Trigger 2137_Help_Campaign_Keyboard_Shortcuts_Scroll_Trigger
;WhenToTest ScrollAdviceRequested
WhenToTest GameReloaded
Condition ScrollAdviceRequested help_scroll
AdviceThread Help_Campaign_Keyboard_Shortcuts_Scroll_Thread 0
And the game CTDs on startup.
EDIT: Ok well, the CTD was due to a spelling error in the path to the script, which I fixed. Now the game starts up, but there is no effect from the script (no automatic adding of money). I realized that the Condition there consumed a parameter (possibly) so I tried both variations: either commenting the entire condition line out and just leaving WhenToTest and the AdviceThread, and also tried using a condition that consumed no parameters, namely "LosingMoney", i.e.:
Quote:
Trigger 2137_Help_Campaign_Keyboard_Shortcuts_Scroll_Trigger
;WhenToTest ScrollAdviceRequested
WhenToTest GameReloaded
;Condition ScrollAdviceRequested help_scroll
Condition not LosingMoney
AdviceThread Help_Campaign_Keyboard_Shortcuts_Scroll_Thread 0
This starts up, again, but produces no increase to the treasury.
Re: Scripting issues - Reload event
If I'm not wrong, this trigger merely allows us to advance an advice that prompts the user to press on "show me how", I'll maybe do some research on this if I find the time.
Re: Scripting issues - Reload event
that is correct alpaca I believe.
dsyrow, perhaps it shouldn't read:
Trigger 2137_Help_Campaign_Keyboard_Shortcuts_Scroll_Trigg er
but instead try:
Trigger 2137_Help_Campaign_Keyboard_Shortcuts_Scroll_Trigger
its just a typo :smile:
Re: Scripting issues - Reload event
It is spelled properly in the file, but the forum software chooses to always insert that little space. So there's still no way to start a script automatically each turn?
Re: Scripting issues - Reload event
I'm not sure dsyrow, I haven't checked myself, but from the look of it its a trigger for the advisor. You still have to click show me how. But its still much better than previously, when you had to have a trigger on everything to get the advisor to pop up.