SigniferOne
10-04-2005, 20:25
Has anyone been able to get the GameReloaded event working? I was following along Epistolary Richard's scripting tutorial, and simply made this change:
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.:
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.
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.:
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.