TR_m1_T_RathraSc
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
doOnce
NoLore
T_Local_NPC
T_Local_NoLore
OnPCHitMe
Source
1Begin TR_m1_T_RathraSc
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 controlQ
10short doOnce
11short NoLore
12short T_Local_NPC
13short T_Local_NoLore
14short OnPCHitMe
15
16if ( OnDeath )
17 set TR_m1_HT_RathraDead to 1
18 startscript TR_m0_TelvanniHortDeathSc
19 if ( GetJournalIndex "TR_m1_HT_Rathra_q1" >= 10 )
20 if ( GetJournalIndex "TR_m1_HT_Rathra_q1" < 100 )
21 Journal "TR_m1_HT_Rathra_q1" 150
22 endif
23 endif
24 if ( GetJournalIndex "TR_m1_HT_Rathra_q2" >= 10 )
25 if ( GetJournalIndex "TR_m1_HT_Rathra_q2" < 100 )
26 Journal "TR_m1_HT_Rathra_q2" 150
27 endif
28 endif
29 if ( GetJournalIndex "TR_m1_HT_Rathra_q3" >= 10 )
30 if ( GetJournalIndex "TR_m1_HT_Rathra_q3" < 100 )
31 Journal "TR_m1_HT_Rathra_q3" 150
32 endif
33 endif
34 if ( GetJournalIndex "TR_m1_HT_Rathra_q4" >= 10 )
35 if ( GetJournalIndex "TR_m1_HT_Rathra_q4" < 100 )
36 Journal "TR_m1_HT_Rathra_q4" 150
37 endif
38 endif
39 if ( GetJournalIndex "TR_m1_HT_Rathra_q5" >= 10 )
40 if ( GetJournalIndex "TR_m1_HT_Rathra_q5" < 100 )
41 Journal "TR_m1_HT_Rathra_q5" 150
42 endif
43 endif
44 if ( GetJournalIndex "TR_m1_HT_Rathra_q6" >= 10 )
45 if ( GetJournalIndex "TR_m1_HT_Rathra_q6" < 100 )
46 Journal "TR_m1_HT_Rathra_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_Rathra" 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 AddSpell TR_m1_Telvanni_Levitate
61 TR_m1_T_DarkSeducer->enable
62 TR_m1_T_DarkSeducer->ExplodeSpell TR_m1_SummonEffect
63 endif
64 set OnPCHitMe to 0
65endif
66
67if ( TR_Map == 1 )
68 return
69endif
70
71set TR_Map to 1
72
73End