Scripts

TR_m4_NPC_Jubal_D

TR_Mainland.esm
Variables 1
Local Variables
disableOnce
Source
1Begin TR_m4_NPC_Jubal_D 2 3;global TR_m4_FG_UshuFree 4;global TR_m4_FG_JubalGlobal 5 6short disableOnce 7 8if ( OnActivate == 1 ) 9 MessageBox "This person appears to be dead -- but not quite." 10endif 11 12if ( disableOnce == 0 ) 13 if ( GetDisabled == 0 ) 14 disable 15 set disableOnce to 1 16 endif 17endif 18 19if ( disableOnce < 0 ) 20 Return 21elseif ( GetJournalIndex TR_m4_FG_Darvas == 300 ) 22 Return 23elseif ( GetDeadCount "TR_m4_Jubal_Orda" >= 1 ) 24 disable 25 set disableOnce to -1 26 Return 27endif 28 29if ( TR_m4_FG_UshuFree == 2 ) 30 if ( TR_m4_FG_JubalGlobal == 1 ) 31 if ( GetDisabled == 1 ) 32 enable 33 endif 34 endif 35endif 36 37if ( TR_m4_FG_UshuFree >= 3 ) 38 if ( GetDisabled == 0 ) 39 disable 40 endif 41endif 42 43End