Scripts

TR_m4_NPC_Othrys_Rorivel

TR_Mainland.esm
Variables 8
Local Variables
TR_Map
control
controlQ
NoLore
AlarmControl
T_Local_NPC
T_Local_NoLore
controlB
Source
1Begin TR_m4_NPC_Othrys_Rorivel 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. This version is for "NoLore" NPCs. 5 6short TR_Map 7short control 8short controlQ 9short NoLore 10short AlarmControl 11short T_Local_NPC 12short T_Local_NoLore 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 ( GetDisabled == 1 ) 25 enable 26 endif 27endif 28 29if ( controlB == 1 ) 30 return 31endif 32 33if ( GetJournalIndex "TR_m4_FG_UshuKur2" == 10 ) 34 SetAlarm 0 35elseif ( GetJournalIndex "TR_m4_FG_UshuKur2" >= 200 ) 36 if ( AlarmControl == 0 ) 37 SetAlarm 100 38 set AlarmControl to 1 39 endif 40endif 41 42if ( TR_Map == 4 ) 43 return 44endif 45set TR_Map to 4 46 47End