Flags and Variables

Discussion in 'General Modification' started by Shiningted, May 10, 2005.

Remove all ads!
  1. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,746
    Likes Received:
    375
    1) Ok, I have only seen one thing at a time in the last {} bit of the dialogue files, where you execute code. What if I want to complete a quest, flag three things and fiddle 17 variables all from one bit of dialogue? Can i put multiple executables in there and how do i seperate them, just a comma?

    2) How do i clear a bunch of variables and flags at the start of the game? (I am using the flags 670-699 or so, so LEAVE THEM ALONE!!!)
     
  2. Morpheus

    Morpheus Mindflayer Veteran

    Joined:
    Nov 11, 2003
    Messages:
    539
    Likes Received:
    1
    1) You can put multiple entries, just separate them with a ";" (semicolon).
    2) I thought all flags & variables have the value zero at the start of the game anyway? Unless you start from a save game, of course.
     
  3. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,746
    Likes Received:
    375
    Yeah you'd think so, but i was looking at some old threads so I wouldn't ask obvious n00b questions and one was about someone coming across a bug that was caused by assuming a flag would start as a 0 and finding it didn't (or something similar).

    I guess i could go look for that thread again to get my 'how to script it' answer... ;-)
     
  4. Livonya

    Livonya Established Member

    Joined:
    Sep 25, 2003
    Messages:
    773
    Likes Received:
    0
    I posted something to that effect a long time ago. I have never seen it replicated since. So I may have just done something stupid.

    As far as I can tell all flags/variables set back to 0 at start of a new game.

    - Livonya

    PS: Also, it is a good idea to get a file searcher program and search through all the scr and dlg files to make sure your numbers aren't being used. a pain in the ass but a good idea, just in case.
     
Our Host!