Scripts

TR_m2_q_4_AnnaveneScript

TR_Mainland.esm
Variables 5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m2_q_4_AnnaveneScript 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 ( GetJournalIndex "TR_m2_TM_Vendetta" == 110 ) 13 if ( getItemCount TR_m2_q_4_AnnavenePoison == 0 ) 14 additem "TR_m2_q_4_AnnavenePoison" 1 15 endif 16endif 17 18if ( OnDeath == 1 ) 19 if ( GetJournalIndex "TR_m2_TM_Vendetta" == 200 ) 20 Journal "TR_m2_TM_Vendetta" 300 21 elseif ( GetJournalIndex "TR_m2_TM_Vendetta" == 160 ) 22 Journal "TR_m2_TM_Vendetta" 300 23 elseif ( GetJournalIndex "TR_m2_TM_Vendetta" < 140 ) 24 if ( GetJournalIndex "TR_m2_TM_Vendetta" > 105 ) 25 Journal "TR_m2_TM_Vendetta" 300 26 endif 27 elseif ( GetJournalIndex "TR_m2_TM_Vendetta" < 99 ) 28 Journal "TR_m2_TM_Vendetta" 300 29 endif 30endif 31 32if ( TR_Map == 2 ) 33 return 34endif 35 36set TR_Map to 2 37 38End