BILL_MT_WritGuril
Morrowind.esm
Variables
6
Local Variables
CL1
CL2
OnPCHitMe
fightRothisNethan
fightTalisDrurel
fightSorosiRadobar
Source
1Begin BILL_MT_WritGuril
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
9short OnPCHitMe
10
11short fightRothisNethan
12short fightTalisDrurel
13short fightSorosiRadobar
14
15if ( MenuMode == 1 )
16 return
17endif
18
19if ( GetJournalIndex MT_WritGuril < 10 )
20 if ( OnPCHitMe == 1 )
21 if ( GetTarget Player == 0 )
22 StartCombat Player
23 endif
24 Set OnPCHitMe to 0
25 endif
26 return
27endif
28
29if ( CellChanged == 1 )
30 set CL1 to GetPCCrimeLevel
31endif
32
33if ( OnPCHitMe == 1 )
34 set fightRothisNethan to 1
35 set fightTalisDrurel to 1
36 set fightSorosiRadobar to 1
37 if ( GetTarget Player == 0 )
38 StartCombat Player
39 endif
40 Set OnPCHitMe to 0
41endif
42
43if ( fightRothisNethan == 1 )
44 if ( "rothis nethan"->GetTarget Player == 1 )
45 "rothis nethan"->StopCombat
46 "rothis nethan"->SetFight 30
47 Set fightRothisNethan to 0
48 endif
49endif
50
51if ( fightTalisDrurel == 1 )
52 if ( "talis drurel"->GetTarget Player == 1 )
53 "talis drurel"->StopCombat
54 "talis drurel"->SetFight 30
55 Set fightTalisDrurel to 0
56 endif
57endif
58
59if ( fightSorosiRadobar == 1 )
60 if ( "sorosi radobar"->GetTarget Player == 1 )
61 "sorosi radobar"->StopCombat
62 "sorosi radobar"->SetFight 30
63 Set fightSorosiRadobar to 0
64 endif
65endif
66
67
68if ( OnDeath == 1 )
69 ; when we are killed...
70
71 if ( GetJournalIndex MT_WritGuril > 0 )
72 ; ... and if the player has a writ for us...
73
74 set CL2 to GetPCCrimeLevel
75 if ( CL2 > CL1 )
76 ; ... append a journal entry if the execution is seen ...
77 Player->Journal MT_WritGuril 80
78 else
79 ; ... append a journal entry if the execution is NOT seen ...
80 Player->Journal MT_WritGuril 90
81 endif
82 endif
83endif
84
85End