TR_m4_MT_Lliralawrit
TR_Mainland.esm
Variables
19
Local Variables
CL1
CL2
TR_map
control
controlQ
OnPCHitMe
nolore
T_Local_NPC
fightclavus
fightorblos
fightnerano
fighthludri
fightrorivel
fightmarvos
fightfarragia
fightberalam
fighthelvi
fightervu
fightarenim
Source
1Begin TR_m4_MT_Lliralawrit
2; log a journal entry for each successful 'hit' the player performs for the Morag Tong
3
4; script location: should be placed on each and every target of the Morag Tong, with
5; changes to reflect the person it is running on.
6
7short CL1
8short CL2
9short TR_map
10short control
11short controlQ
12short OnPCHitMe
13short nolore
14short T_Local_NPC
15short fightclavus
16short fightorblos
17short fightnerano
18short fighthludri
19short fightrorivel
20short fightmarvos
21short fightfarragia
22short fightberalam
23short fighthelvi
24short fightervu
25short fightarenim
26
27set TR_map to 4
28
29if ( MenuMode == 1 )
30 return
31endif
32
33if ( OnPCHitMe == 1 )
34 set fightclavus to 1
35 set fightorblos to 1
36 set fightnerano to 1
37 set fighthludri to 1
38 set fightrorivel to 1
39 set fightmarvos to 1
40 set fightfarragia to 1
41 set fightberalam to 1
42 set fighthelvi to 1
43 set fightervu to 1
44 set fightarenim to 1
45 set control to 1 ;using this instead of making a new variable
46 "TR_m4_Maldrys Torven"->StartCombat Player
47 "TR_m4_Maldrys Torven"->SetFight 100
48 Set OnPCHitMe to 0
49endif
50
51if ( control == 1 )
52 if ( "TR_m4_Assemmus Todros"->GetTarget Player == 1 )
53 "TR_m4_Assemmus Todros"->StopCombat
54 "TR_m4_Assemmus Todros"->SetFight 30
55 set control to 0
56 endif
57endif
58
59if ( fightclavus == 1 )
60 if ( "TR_m4_Clavus Farragian"->GetTarget Player == 1 )
61 "TR_m4_Clavus Farragian"->StopCombat
62 "TR_m4_Clavus Farragian"->SetFight 30
63 set fightclavus to 0
64 endif
65endif
66
67if ( fightorblos == 1 )
68 if ( "TR_m4_Orblos"->GetTarget Player == 1 )
69 "TR_m4_Orblos"->StopCombat
70 "TR_m4_Orblos"->SetFight 30
71 set fightorblos to 0
72 endif
73endif
74
75if ( fightnerano == 1 )
76 if ( "TR_m4_Naamalvo Nerano"->GetTarget Player == 1 )
77 "TR_m4_Naamalvo Nerano"->StopCombat
78 "TR_m4_Naamalvo Nerano"->SetFight 30
79 set fightnerano to 0
80 endif
81endif
82
83if ( fighthludri == 1 )
84 if ( "TR_m4_Felryne Hludri"->GetTarget Player == 1 )
85 "TR_m4_Felryne Hludri"->StopCombat
86 "TR_m4_Felryne Hludri"->SetFight 30
87 set fighthludri to 0
88 endif
89endif
90
91if ( fightrorivel == 1 )
92 if ( "TR_m4_Veresu Rorivel"->GetTarget Player == 1 )
93 "TR_m4_Veresu Rorivel"->StopCombat
94 "TR_m4_Veresu Rorivel"->SetFight 30
95 set fightrorivel to 0
96 endif
97endif
98
99if ( fightmarvos == 1 )
100 if ( "TR_m4_Milus Marvos"->GetTarget Player == 1 )
101 "TR_m4_Milus Marvos"->StopCombat
102 "TR_m4_Milus Marvos"->SetFight 30
103 set fightmarvos to 0
104 endif
105endif
106
107if ( fightfarragia == 1 )
108 if ( "TR_m4_Drusilla Farragia"->GetTarget Player == 1 )
109 "TR_m4_Drusilla Farragia"->StopCombat
110 "TR_m4_Drusilla Farragia"->SetFight 30
111 set fightfarragia to 0
112 endif
113endif
114
115if ( fightberalam == 1 )
116 if ( "TR_m4_Llaros_Beralam"->GetTarget Player == 1 )
117 "TR_m4_Llaros_Beralam"->StopCombat
118 "TR_m4_Llaros_Beralam"->SetFight 30
119 set fightberalam to 0
120 endif
121endif
122
123if ( fighthelvi == 1 )
124 if ( "TR_m4_Dreynos_Helvi"->GetTarget Player == 1 )
125 "TR_m4_Dreynos_Helvi"->StopCombat
126 "TR_m4_Dreynos_Helvi"->SetFight 30
127 set fighthelvi to 0
128 endif
129endif
130
131if ( fightervu == 1 )
132 if ( "TR_m4_Ervu Telandas"->GetTarget Player == 1 )
133 "TR_m4_Ervu Telandas"->StopCombat
134 "TR_m4_Ervu Telandas"->SetFight 30
135 set fightervu to 0
136 endif
137endif
138
139if ( fightarenim == 1 )
140 if ( "TR_m4_Gadani Arenim"->GetTarget Player == 1 )
141 "TR_m4_Gadani Arenim"->StopCombat
142 "TR_m4_Gadani Arenim"->SetFight 30
143 set fightarenim to 0
144 endif
145endif
146
147if ( CellChanged == 1 )
148 set CL1 to GetPCCrimeLevel
149endif
150
151if ( OnDeath == 1 )
152 ; when we are killed...
153
154 if ( GetJournalIndex TR_m4_MT_Llirala > 0 )
155 ; ... and if the player has a writ for us...
156
157 set CL2 to GetPCCrimeLevel
158 if ( CL2 > CL1 )
159 ; ... append a journal entry if the execution is seen ...
160 Player->Journal TR_m4_MT_Llirala 80
161 else
162 ; ... append a journal entry if the execution is NOT seen ...
163 Player->Journal TR_m4_MT_Llirala 90
164 endif
165 endif
166endif
167
168End