TR_m7_MT_WritIbarmas
TR_Mainland.esm
Variables
7
Local Variables
CL1
CL2
TR_map
control
controlQ
nolore
T_Local_NPC
Source
1Begin TR_m7_MT_WritIbarmas
2
3short CL1
4short CL2
5short TR_map
6short control
7short controlQ
8short nolore
9short T_Local_NPC
10
11set TR_map to 7
12
13if ( MenuMode == 1 )
14 return
15endif
16
17if ( CellChanged == 1 )
18 set CL1 to GetPCCrimeLevel
19endif
20
21if ( OnDeath == 1 )
22 ; when we are killed...
23
24 if ( GetJournalIndex TR_m7_MT_Ibarmas > 0 )
25 ; ... and if the player has a writ for us...
26
27 set CL2 to GetPCCrimeLevel
28 if ( CL2 > CL1 )
29 ; ... append a journal entry if the execution is seen ...
30 Player->Journal TR_m7_MT_Ibarmas 80
31 else
32 ; ... append a journal entry if the execution is NOT seen ...
33 Player->Journal TR_m7_MT_Ibarmas 90
34 endif
35 else
36 ; Copied from TR_m7_Shin_NasarKill_sc
37 ; This will only cause the Nasar to hate you if you don't
38 ; have the MT quest
39 Journal TR_m7_Shin_NasarKill 1
40 endif
41endif
42
43End