Scripts

TR_m4_NPC_Marug_Meridius

TR_Mainland.esm
Variables 10
Local Variables
TR_Map
control
controlQ
controlA
AmuletSell
NoLore
controlEnd
doOnce
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_Marug_Meridius 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 controlA 10short AmuletSell 11short NoLore 12short controlEnd 13short doOnce 14short T_Local_NPC 15short T_Local_NoLore 16 17if ( doOnce == 0 ) 18 AiWander 0 30 20 20 0 5 0 0 0 19 set doOnce to 1 20endif 21 22if ( GetJournalIndex "TR_m4_TG_Marug1" == 150 ) 23 if ( AmuletSell == 0 ) 24 if ( CellChanged == 1 ) 25 set AmuletSell to 1 26 endif 27 endif 28endif 29 30if ( TR_Map == 4 ) 31 return 32endif 33 34set TR_Map to 4 35 36End