Scripts

TR_m4_Darron_Marceau_scr

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_Darron_Marceau_scr 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 ( OnDeath ) 14 if ( GetJournalIndex "TR_m4_VA_OVampHunt" >= 10 ) 15 Journal TR_m4_VA_OVampHunt 50 16 elseif ( GetJournalIndex "TR_m4_Bal1_Hunter" >= 20 ) 17 Journal TR_m4_Bal1_Hunter 30 18 endif 19endif 20 21if ( control == 0 ) 22 23 if ( GetJournalIndex "TR_m4_VA_OVampHunt" >= 10 ) 24 set control to 1 25 return 26 elseif ( GetJournalIndex "TR_m4_Bal1_Hunter" >= 20 ) 27 set control to 1 28 return 29 endif 30 31 if ( GetDisabled ) 32 return 33 else 34 Disable 35 endif 36 37elseif ( GetDisabled ) 38 Enable 39endif 40 41if ( TR_Map != 4 ) 42 return 43endif 44set TR_Map to 4 45 46End