TR_m3_MT_WritIndriri
TR_Mainland.esm
Variables
7
Local Variables
CL1
CL2
TR_map
control
controlQ
nolore
T_Local_NPC
Source
1Begin TR_m3_MT_WritIndriri
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
7; also contains death checks for Uman bounties
8
9short CL1
10short CL2
11short TR_map
12short control
13short controlQ
14short nolore
15short T_Local_NPC
16
17if ( MenuMode == 1 )
18 return
19endif
20
21if ( CellChanged == 1 )
22 set CL1 to GetPCCrimeLevel
23endif
24
25if ( OnDeath == 1 )
26 ; when we are killed...
27
28 if ( GetJournalIndex TR_m3_MT_Indriri > 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_Indriri 80
35 else
36 ; ... append a journal entry if the execution is NOT seen ...
37 Player->Journal TR_m3_MT_Indriri 90
38 endif
39 endif
40
41 ; Uman bounties
42 if ( GetJournalIndex "TR_m4_Uman_B1" > 0 )
43 if ( GetJournalIndex "TR_m4_Uman_B1" < 40 )
44 Journal "TR_m4_Uman_B1" 200
45 endif
46 endif
47 if ( GetJournalIndex "TR_m4_Uman_B2" > 0 )
48 if ( GetJournalIndex "TR_m4_Uman_B2" < 40 )
49 Journal "TR_m4_Uman_B2" 200
50 endif
51 endif
52 if ( GetJournalIndex "TR_m4_Uman_B3" > 0 )
53 if ( GetJournalIndex "TR_m4_Uman_B3" < 40 )
54 Journal "TR_m4_Uman_B3" 200
55 endif
56 endif
57endif
58
59if ( TR_Map )
60 return
61endif
62
63set TR_map to 4
64
65End