BILL_MT_WritVendu
Morrowind.esm
Variables
2
Local Variables
CL1
CL2
Source
1begin BILL_MT_WritVendu
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
10if ( MenuMode == 1 )
11 return
12endif
13
14if ( CellChanged == 1 )
15 set CL1 to GetPCCrimeLevel
16endif
17
18if ( OnDeath == 1 )
19 ; when we are killed...
20
21 if ( GetJournalIndex MT_WritVendu > 0 )
22 ; ... and if the player has a writ for us...
23
24 set CL2 to GetPCCrimeLevel
25
26 if ( CL2 > CL1 )
27 ; ... append a journal entry if the execution is seen ...
28 ; ... based on if the other is killed too ...
29
30 if ( GetDeadCount, "ethal seloth" == 0 )
31 Player->Journal MT_WritVendu 75
32 else
33 Player->Journal MT_WritVendu 80
34 endif
35 else
36 ; ... append a journal entry if the execution is NOT seen ...
37
38 if ( GetDeadCount, "ethal seloth" == 0 )
39 Player->Journal MT_WritVendu 85
40 else
41 Player->Journal MT_WritVendu 90
42 endif
43 endif
44 endif
45endif
46
47End