TR_m2_T_VaerinSc
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlD
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
OnPCHitMe
Source
1Begin TR_m2_T_VaerinSc
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; Edited version exists so TR_Factions can overwrite the script directly, rather than going through the NPC record.
6
7short TR_Map
8short control
9short controlD
10short controlQ
11short NoLore
12short T_Local_NPC
13short T_Local_NoLore
14short OnPCHitMe
15
16if ( OnDeath )
17 set TR_m2_HT_VaerinDead to 1
18 startscript TR_m0_TelvanniHortDeathSc
19 if ( GetJournalIndex "TR_m2_HT_Vaerin_q1" >= 10 )
20 if ( GetJournalIndex "TR_m2_HT_Vaerin_q1" < 100 )
21 Journal "TR_m2_HT_Vaerin_q1" 150
22 endif
23 endif
24 if ( GetJournalIndex "TR_m2_HT_Vaerin_q2" >= 10 )
25 if ( GetJournalIndex "TR_m2_HT_Vaerin_q2" < 100 )
26 Journal "TR_m2_HT_Vaerin_q2" 150
27 endif
28 endif
29 if ( GetJournalIndex "TR_m2_HT_Vaerin_q3" >= 10 )
30 if ( GetJournalIndex "TR_m2_HT_Vaerin_q3" < 100 )
31 Journal "TR_m2_HT_Vaerin_q3" 150
32 endif
33 endif
34 if ( GetJournalIndex "TR_m2_HT_Vaerin_q4" >= 10 )
35 if ( GetJournalIndex "TR_m2_HT_Vaerin_q4" < 100 )
36 Journal "TR_m2_HT_Vaerin_q4" 150
37 endif
38 endif
39 if ( GetJournalIndex "TR_m2_HT_Vaerin_q5" >= 10 )
40 if ( GetJournalIndex "TR_m2_HT_Vaerin_q5" < 100 )
41 Journal "TR_m2_HT_Vaerin_q5" 150
42 endif
43 endif
44 if ( GetJournalIndex "TR_m2_HT_Vaerin_q6" >= 10 )
45 if ( GetJournalIndex "TR_m2_HT_Vaerin_q6" < 100 )
46 Journal "TR_m2_HT_Vaerin_q6" 150
47 endif
48 endif
49 if ( GetJournalIndex "TR_m1_HT_UnseatingDral" >= 10 )
50 if ( GetJournalIndex "TR_m1_HT_UnseatingDral" < 20 )
51 Journal "TR_m1_HT_UnseatingDral_Vaerin" 150
52 StartScript TR_m1_HT_UnseatingDralSc
53 endif
54 endif
55endif
56
57if ( OnPCHitMe == 1 )
58 if ( control == 0 )
59 set control to 1
60 Cast "TR_m2_Vaerin_Chameleon" TR_m2_Master_Vaerin
61 endif
62 set OnPCHitMe to 0
63endif
64
65if ( TR_Map == 2 )
66 return
67endif
68
69set TR_Map to 2
70
71End