Scripts

TR_m4_NPC_UshuKurG03

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
disableOnce
T_Local_NPC
controlB
Source
1begin TR_m4_NPC_UshuKurG03 2; This short script is there to allow dialogue to be filtered on the TR_Map local variable, 3; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be 4; appropriate to the location the NPC is. 5 6short TR_Map 7short control 8short controlQ 9short NoLore 10short disableOnce 11short T_Local_NPC 12;global TR_m4_FG_JubalGlobal 13;global TR_m4_FG_UshuFree 14short controlB 15 16if ( TR_m4_FG_UshuFree == 2 ) 17 if ( GetDisabled == 0 ) 18 disable 19 set controlB to 1 20 endif 21endif 22 23if ( TR_m4_FG_UshuFree >= 3 ) 24 if ( TR_m4_FG_JubalGlobal == 1 ) 25 if ( GetDisabled == 1 ) 26 enable 27 endif 28 endif 29endif 30 31if ( controlB == 1 ) 32 return 33endif 34 35if ( disableOnce == 0 ) 36 if ( GetDisabled == 0 ) 37 disable 38 set disableOnce to 1 39 endif 40endif 41 42if ( TR_m4_FG_JubalGlobal == 1 ) 43 if ( GetDisabled == 1 ) 44 enable 45 endif 46endif 47 48if ( OnDeath ) 49 set TR_m4_UshuKur_D_Guard01.disableOnce to -1 50endif 51 52if ( TR_Map == 4 ) 53 return 54endif 55 56set TR_Map to 4 57 58End