PDA

View Full Version : Scripting issues - Reload event



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.

Epistolary Richard
10-04-2005, 22:36
Questions live in modding questions, thanks.

The Scriptorium, despite its name, is not just for scripts :smile:

alpaca
10-04-2005, 23:34
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.

Myrddraal
10-05-2005, 03:24
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:

SigniferOne
10-05-2005, 03:29
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?

Myrddraal
10-05-2005, 03:33
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.