TR_m3_MT_WritDileru
TR_Mainland.esm
Variables
8
Local Variables
CL1
CL2
TR_map
control
controlQ
OnPCHitMe
nolore
T_Local_NPC
Source
1Begin TR_m3_MT_WritDileru
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
15
16if ( GetJournalIndex TR_m3_MT_Dileru == 10 )
17 if ( OnPCHitMe == 1 )
18 if ( GetTarget Player == 0 )
19 StartCombat Player
20 endif
21 Set OnPCHitMe to 0
22 endif
23endif
24
25set TR_map to 3
26
27if ( MenuMode == 1 )
28 return
29endif
30
31if ( CellChanged == 1 )
32 set CL1 to GetPCCrimeLevel
33endif
34
35if ( OnDeath == 1 )
36 ; when we are killed...
37
38 if ( GetJournalIndex TR_m3_MT_Dileru > 0 )
39 ; ... and if the player has a writ for us...
40
41 set CL2 to GetPCCrimeLevel
42 if ( CL2 > CL1 )
43 ; ... append a journal entry if the execution is seen ...
44 Player->Journal TR_m3_MT_Dileru 80
45 "TR_m3_Entosaro Tanian"->enable
46 set "TR_m3_Entosaro Tanian".controlQ to 1
47 "TR_m3_Dileru Dras_Witn"->disable
48 else
49 ; ... append a journal entry if the execution is NOT seen ...
50 Player->Journal TR_m3_MT_Dileru 90
51 "TR_m3_Dileru Dras_Witn"->disable
52 endif
53 endif
54endif
55
56End