Scripts

TR_m3_TT_IlleneAssa03_NPC

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
disableOnce
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m3_TT_IlleneAssa03_NPC 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 disableOnce 11short T_Local_NPC 12short T_Local_NoLore 13 14if ( disableOnce == 0 ) 15 disable 16 set disableOnce to 1 17endif 18 19if ( GetJournalIndex "TR_m3_TT_Illene3" == 130 ) 20 if ( GetDisabled == 1 ) 21 enable 22 endif 23 if ( GetDistance, player < 512 ) 24 startcombat, "TR_m4_Skalla" 25 endif 26endif 27 28if ( controlQ == 1 ) 29 if ( CellChanged == 1 ) 30 if ( GetDisabled == 0 ) 31 disable 32 endif 33 endif 34endif 35 36if ( TR_Map == 4 ) 37 return 38endif 39 40set TR_Map to 4 41 42End