Scripts

TR_m4_NPC_Orblos

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