Scripts

TR_m4_NPC_HjaskarTheSharp

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_HjaskarTheSharp 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 T_Local_NPC 11short T_Local_NoLore 12 13if ( GetDisabled == 0 ) 14 if ( getjournalindex TR_m4_FG_Hjaskar == 30 ) 15 disable 16 elseif ( getjournalindex TR_m4_FG_Hjaskar >= 20 ) 17 if ( getjournalindex TR_m4_FG_Hjaskar <= 21 ) 18 disable 19 endif 20 endif 21endif 22 23if ( OnDeath ) 24 if ( controlQ == 0 ) 25 addItem Gold_001 500 26 elseif ( controlQ == 1 ) 27 addItem Gold_001 250 28 endif 29endif 30 31if ( TR_Map == 4 ) 32 return 33endif 34 35set TR_Map to 4 36 37End