About 'game.new_sid' scripting command

Discussion in 'General Modification' started by Agetian, Sep 6, 2005.

Remove all ads!
  1. Agetian

    Agetian Attorney General Administrator

    Joined:
    Aug 14, 2004
    Messages:
    2,526
    Likes Received:
    0
    Shiningted asked me before what the scripting command "game.new_sid" does. It's found in many original game scripts, but it's exact meaning was unknown so far. I mistakenly thought that 'sid' in 'new_sid' stands for "sound ID" (as it usually does in ToEE). However, a recent discussion with Steve Moret shows that "sid" in this specific command stands for "script ID". Here's a direct quote of what Steve said about this command:

    Agetian>> I was wondering about the scripting command:
    Agetian>> game.new_sid = 0

    Steve> This replaces the script running with the new script id number. It
    Steve> basically allows you to replace or remove a script. So if we're
    Steve> currently running script ID "10" in slot san_enter_combat, and you
    Steve> have the line game.new_sid = 0, it clears the script for
    Steve> san_enter_combat and no script will run there.

    I hope this helps.
    - Agetian
     
  2. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    Thank you once again, Agetian. This may well clear up a good deal of mysteries about scripts.
     
  3. Shiningted

    Shiningted I want my goat back Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,655
    Likes Received:
    352
    Oooooooooooooooo

    And I stand by that! :D

    Edit: re what we were talking about Agetian, I wonder if i could 'reset' the san_enter_combat thing by just giving it a 'new' id of the same number? Must try :)
     
    Last edited: Sep 6, 2005
Our Host!