BILL_MT_WritNavil
Morrowind.esm
Variables
4
Local Variables
CL1
CL2
OnPCHitMe
doOnce
Source
1Begin BILL_MT_WritNavil
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 OnPCHitMe
11
12short doOnce
13;for voice and enabling Ranes
14
15if ( MenuMode == 1 )
16 return
17endif
18
19if ( CellChanged == 1 )
20 set CL1 to GetPCCrimeLevel
21endif
22
23if ( doOnce == 0 )
24 if ( OnPCHitMe == 1 )
25 PlaceAtPC "ranes ienith" 1 128 1
26 ;change to enable if this is not fixed
27 Say, "Vo\Misc\bill_diedog.wav", "Die like a dog."
28 set doOnce to 1
29 endif
30endif
31
32if ( OnDeath == 1 )
33 ; when we are killed...
34
35 if ( doOnce == 0 )
36 ;just in case it didn't go off earlier... Should not happen.
37 PlaceAtPC "ranes ienith" 1 128 1
38 set doOnce to 1
39 endif
40
41
42 if ( GetJournalIndex MT_WritNavil > 0 )
43 ; ... and if the player has a writ for us...
44
45 set CL2 to GetPCCrimeLevel
46
47 if ( CL2 > CL1 )
48 ; ... append a journal entry if the execution is seen ...
49 ; ... based on if the other is killed too ...
50
51 if ( GetDeadCount, "Ranes Ienith" == 0 )
52 Player->Journal MT_WritNavil 75
53 else
54 Player->Journal MT_WritNavil 80
55 endif
56 else
57 ; ... append a journal entry if the execution is NOT seen ...
58
59 if ( GetDeadCount "Ranes Ienith" == 0 )
60 Player->Journal MT_WritNavil 85
61 else
62 Player->Journal MT_WritNavil 90
63 endif
64 endif
65 endif
66endif
67
68End