TR_m3_MT_WritArin
TR_Mainland.esm
Variables
8
Local Variables
CL1
CL2
TR_map
control
controlQ
nolore
T_Local_NPC
killed
Source
1Begin TR_m3_MT_WritArin
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 nolore
13short T_Local_NPC
14short killed
15
16set TR_map to 3
17
18if ( MenuMode == 1 )
19 return
20endif
21
22if ( CellChanged == 1 )
23 set CL1 to GetPCCrimeLevel
24endif
25
26if ( OnDeath == 1 )
27 set killed to 1
28 if ( GetJournalIndex TR_m3_MT_Arin > 0 )
29 ; ... and if the player has a writ for us...
30
31 set CL2 to GetPCCrimeLevel
32 if ( CL2 > CL1 )
33 ; ... append a journal entry if the execution is seen ...
34 Player->Journal TR_m3_MT_Arin 80
35 else
36 ; ... append a journal entry if the execution is NOT seen ...
37 Player->Journal TR_m3_MT_Arin 90
38 endif
39 endif
40endif
41
42if ( killed )
43 set killed to 0
44 SetFight 30
45endif
46
47End