Results 1 to 6 of 6

Thread: Scripting issues - Reload event

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default 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:

    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.
    Last edited by SigniferOne; 10-04-2005 at 21:01.

  2. #2

    Default Re: Scripting issues

    Questions live in modding questions, thanks.

    The Scriptorium, despite its name, is not just for scripts
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

  3. #3
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default 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.

  4. #4
    Shaidar Haran Senior Member SAM Site Champion Myrddraal's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    5,752

    Default 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

  5. #5

    Default 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?

  6. #6
    Shaidar Haran Senior Member SAM Site Champion Myrddraal's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    5,752

    Default 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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO