Scripts

TR_m4_NPC_Molsa_Ervethi

TR_Mainland.esm
Variables 5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m4_NPC_Molsa_Ervethi 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 T_Local_NPC 10short NoLore 11 12if ( GetJournalIndex "TR_m4_FG_Molsa" >= 100 ) 13 if ( GetDisabled == 0 ) 14 disable 15 return 16 endif 17elseif ( GetJournalIndex "TR_m4_FG_Molsa" < 10 ) 18 if ( GetDisabled == 0 ) 19 disable 20 return 21 endif 22elseif ( GetDisabled ) 23 enable 24endif 25 26if ( GetDistance player <= 200 ) 27 if ( GetJournalIndex "TR_m4_FG_Molsa" >= 10 ) 28 if ( GetJournalIndex "TR_m4_FG_Molsa" < 50 ) 29 Journal "TR_m4_FG_Molsa" 50 30 endif 31 endif 32endif 33 34if ( TR_Map == 4 ) 35 return 36endif 37 38set TR_Map to 4 39 40End