gardingScript
Morrowind.esm
Variables
2
Local Variables
NoLore
doOnce
Source
1Begin gardingScript
2
3;if you're both in the Arena
4;and if the Bero Support quest is active
5;handles duel flag and duel conditions
6
7short NoLore
8short doOnce
9
10if ( GetPCCell "Vivec, Arena Pit" == 0 )
11 ;if you're not in the arena yet, is very bad to kill him, also no reason to run rest of script yet
12 if ( OnDeath == 1 )
13 Journal HH_BeroSupport 200
14 endif
15 return
16endif
17
18if ( GetJournalIndex HH_BeroSupport >= 70 )
19 ;if quest if over and he's not dead, pop him back to haunted manor once, also stop here
20
21 if ( CellChanged == 0 )
22 return
23 endif
24
25 if ( doOnce == 0 )
26 if ( GetDeadCount "Garding" == 0 )
27 PositionCell 8090 698 -500 270 "Vivec, St. Olms Haunted Manor"
28 endif
29 endif
30
31 return
32
33endif
34
35if ( OnDeath == 1 )
36 Set DuelActive to 0
37 Journal HH_BeroSupport 70
38endif
39
40if ( OnKnockout == 1 )
41 Set DuelActive to 0
42 Journal HH_BeroSupport 70
43 SetFight 0
44 StopCombat
45endif
46
47if ( GetHealth < 70 )
48 Set DuelActive to 0
49 Journal HH_BeroSupport 70
50 ForceGreeting
51 SetFight 0
52 StopCombat
53endif
54
55End