Scripts

TR_m1_NPC_Gilen_Indothan

TR_Mainland.esm
Variables 5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m1_NPC_Gilen_Indothan 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 T_Local_NPC 10short NoLore 11 12if ( CellChanged == 0 ) 13 return 14endif 15 16if ( GetDisabled == 0 ) 17 if ( GetJournalIndex TR_m1_TT_7 == 0 ) 18 Disable 19 return 20 elseif ( GetJournalIndex TR_m1_TT_7 >= 40 ) 21 Disable 22 return 23 endif 24elseif ( GetDisabled ) 25 if ( GetJournalIndex TR_m1_TT_7 > 0 ) 26 if ( GetJournalIndex TR_m1_TT_7 < 40 ) 27 Enable 28 Return 29 endif 30 endif 31endif 32 33if ( TR_Map ) 34 return 35endif 36 37set TR_Map to 1 38 39End