BILL_MT_WritBrilnosu
Morrowind.esm
Variables
3
Local Variables
CL1
CL2
doOnce
Source
1begin BILL_MT_WritBrilnosu
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
9
10short doOnce
11
12if ( MenuMode == 1 )
13 return
14endif
15
16if ( CellChanged == 1 )
17 set CL1 to GetPCCrimeLevel
18endif
19
20if ( OnDeath == 1 )
21 ; when we are killed...
22
23 if ( GetJournalIndex MT_WritBrilnosu > 0 )
24 ; ... and if the player has a writ for us...
25
26 set CL2 to GetPCCrimeLevel
27 if ( CL2 > CL1 )
28 ; ... append a journal entry if the execution is seen ...
29 Player->Journal MT_WritBrilnosu 80
30 else
31 ; ... append a journal entry if the execution is NOT seen ...
32 Player->Journal MT_WritBrilnosu 90
33 endif
34 endif
35endif
36
37End