scripting issue

Discussion in 'Fallout Tactics Modding' started by paladin_lord, Dec 23, 2011.

  1. paladin_lord

    paladin_lord It Wandered In From the Wastes

    104
    Dec 12, 2011
    Every time i use the following script;

    npc response = C -> speak event x occurred / A = force unit Y to speak Z node

    It crashes the game, anyone has passed through something similar?
     
  2. TwoEyedYum

    TwoEyedYum Naked Moose

    355
    Jan 21, 2010
  3. requiem_for_a_starfury

    requiem_for_a_starfury So Old I'm Losing Radiation Signs

    Apr 3, 2003
    Speech events i.e. clicking on a character aren't switches they don't change the state of anything. Clicking on a character whether using windowed or floating text causes a speech node to be used. Forcing speech causes a speech node to be used and the game can't cope with this happening at the same time, even if you use a wait command to delay the force speech.

    To get around it you'll need to use a variable, so condition speech event x occurred, action set mission variable y = t.

    Then in a separate trigger condition mission variable y is t, action entity A will use speech z.
     
  4. guzer

    guzer First time out of the vault
    Modder

    18
    Mar 2, 2008
    using variables rulez ;)
     
  5. paladin_lord

    paladin_lord It Wandered In From the Wastes

    104
    Dec 12, 2011
    thanks for the help.