Scripts

TR_m4_NPC_UshuKurG02

TR_Mainland.esm
Variables 8
Local Variables
TR_Map
control
controlQ
AlarmControl
NoLore
T_Local_NPC
T_Local_NoLore
controlB
Source
1begin TR_m4_NPC_UshuKurG02 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 AlarmControl 10short NoLore 11short T_Local_NPC 12short T_Local_NoLore 13;global TR_m4_FG_OrblosGlobal 14;global TR_m4_FG_UshuFree 15short controlB 16 17if ( TR_m4_FG_UshuFree == 2 ) 18 if ( GetDisabled == 0 ) 19 disable 20 set controlB to 1 21 endif 22endif 23 24if ( TR_m4_FG_UshuFree >= 3 ) 25 if ( GetDisabled == 1 ) 26 if ( TR_m4_FG_OrblosGlobal == 0 ) 27 enable 28 endif 29 endif 30endif 31 32if ( controlB == 1 ) 33 return 34endif 35 36if ( TR_m4_FG_OrblosGlobal == 1 ) 37 if ( GetDisabled == 0 ) 38 disable 39 TR_m4_Orblos->PositionCell -47620 -205438 700 15420 "Ushu-Kur" 40 TR_m4_Orblos->AIWander 0 0 0 0 10 60 20 10 0 0 0 0 0 41 TR_m4_Orblos->ModDisposition -20 42 Set TR_m4_Orblos.T_Local_NoLore to 0 43 endif 44endif 45 46if ( GetJournalIndex "TR_m4_FG_UshuKur2" == 10 ) 47 SetAlarm 0 48elseif ( GetJournalIndex "TR_m4_FG_UshuKur2" >= 200 ) 49 if ( AlarmControl == 0 ) 50 SetAlarm 100 51 set AlarmControl to 1 52 endif 53endif 54 55if ( TR_Map == 4 ) 56 return 57endif 58 59set TR_Map to 4 60 61End