DagothUrCreature2
Morrowind.esm
Variables
3
Local Variables
state
teleportDisabled
timer
Source
1begin DagothUrCreature2
2
3short state
4float timer
5short teleportDisabled
6
7if ( teleportDisabled == 0 )
8 DisableTeleporting
9 Set teleportDisabled to 1
10endif
11
12if ( Menumode == 1 )
13 return
14endif
15
16;return if heart is destroyed, so he can be killed
17if ( HeartDestroyed == 1 )
18 if ( GetHealth > 200 )
19 SetHealth 200
20 endif
21 if ( GetMagicka > 0 )
22 SetMagicka 0
23 endif
24 return
25endif
26
27;keep alive
28if ( GetHealth < 1000 )
29 SetHealth 1000
30endif
31
32;infinite spells
33if ( GetMagicka < 100 )
34 SetMagicka 1000
35endif
36
37if ( state == 0 )
38
39 if ( timer < 1 )
40 Set timer to ( timer + GetSecondsPassed )
41 return
42 endif
43
44 Set timer to 0
45
46 ;play initial greeting, once
47 Player->Say, "Vo\Misc\Dagoth Ur Welcome C.wav", "What a fool you are. I'm a god. How can you kill a god? What a grand and intoxicating innocence. How could you be so naive? There is no escape. No Recall or Intervention can work in this place. Come. Lay down your weapons. It is not too late for my mercy."
48 set state to 10
49endif
50
51if ( "heart_akulakhan".countHits == 0 )
52
53 ;if Dagoth has not been hit or it is reset, reset dagoth's shields
54
55 if ( GetSpell "dagoth_ur_shield_01" == 0 )
56 AddSpell "dagoth_ur_shield_01"
57 endif
58
59 if ( GetSpell "dagoth_ur_shield_02" == 1 )
60 RemoveSpell "dagoth_ur_shield_02"
61 endif
62
63 if ( GetSpell "dagoth_ur_shield_03" == 1 )
64 RemoveSpell "dagoth_ur_shield_03"
65 endif
66
67 if ( GetSpell "dagoth_ur_shield_04" == 1 )
68 RemoveSpell "dagoth_ur_shield_04"
69 endif
70
71endif
72
73if ( "heart_akulakhan".countHits == 1 )
74
75 if ( GetSpell "dagoth_ur_shield_01" == 1 )
76 RemoveSpell "dagoth_ur_shield_01"
77 endif
78
79 if ( GetSpell "dagoth_ur_shield_02" == 0 )
80 AddSpell "dagoth_ur_shield_02"
81 endif
82
83endif
84
85if ( "heart_akulakhan".countHits == 2 )
86
87 if ( GetSpell "dagoth_ur_shield_02" == 1 )
88 RemoveSpell "dagoth_ur_shield_02"
89 endif
90
91 if ( GetSpell "dagoth_ur_shield_03" == 0 )
92 AddSpell "dagoth_ur_shield_03"
93 endif
94
95endif
96
97if ( "heart_akulakhan".countHits == 3 )
98
99 if ( GetSpell "dagoth_ur_shield_03" == 1 )
100 RemoveSpell "dagoth_ur_shield_01"
101 endif
102
103 if ( GetSpell "dagoth_ur_shield_04" == 0 )
104 AddSpell "dagoth_ur_shield_04"
105 endif
106
107endif
108
109if ( "heart_akulakhan".countHits == 4 )
110
111 if ( GetSpell "dagoth_ur_shield_01" == 1 )
112 RemoveSpell "dagoth_ur_shield_01"
113 endif
114
115 if ( GetSpell "dagoth_ur_shield_02" == 1 )
116 RemoveSpell "dagoth_ur_shield_02"
117 endif
118
119 if ( GetSpell "dagoth_ur_shield_03" == 1 )
120 RemoveSpell "dagoth_ur_shield_03"
121 endif
122
123 if ( GetSpell "dagoth_ur_shield_04" == 1 )
124 RemoveSpell "dagoth_ur_shield_04"
125 endif
126
127endif
128
129End