DagothUrCreature1
Morrowind.esm
Tribunal.esm
Bloodmoon.esm
Variables
4
Local Variables
state
HaveStuff
OpenDoors
timer
Source
1begin DagothUrCreature1
2
3short state
4short HaveStuff
5float timer
6short OpenDoors
7
8if ( Menumode == 1 )
9 return
10endif
11
12if ( state == 0 )
13
14 ;play initial greeting, once
15 if ( GetDistance, Player < 800 )
16
17 if ( Player->GetItemCount, "Keening" > 0 ) ;check for keening
18 if ( Player->GetItemCount, "Sunder" > 0 ) ;check for sunder
19 if ( Player->GetItemCount, "Wraithguard" > 0 ) ;check for wraithguard
20 set HaveStuff to 1
21 endif
22 endif
23 endif
24
25 if ( HaveStuff == 1 )
26
27 Player->Say, "Vo\Misc\Dagoth Ur Welcome B.wav", "Welcome, Moon-and-Star, to this place where destiny is made."
28
29 else
30
31 Player->Say, "Vo\Misc\Dagoth Ur Welcome A.wav", "Dagoth Ur welcomes you, Nerevar, my old friend. But to this place where destiny is made, why have you come unprepared?"
32
33 endif
34
35 set state to 10
36
37 endif
38
39
40endif
41
42
43;check for death and play effect by doors and sivel them open
44if ( OnDeath == 1 )
45
46 "dagoth ur death sparkles"->enable
47 "dagoth ur death sparkles"->PlayGroup, Death1
48 set OpenDoors to 1
49 "Akula door B"->PlaySound3d "Door Stone Open"
50 "Akula door A"->PlaySound3d "Door Stone Open"
51
52
53endif
54
55;doors rotate 45 degrees
56if ( OpenDoors == 1 )
57
58 set timer to timer + GetSecondsPassed
59
60 if ( GetDisabled == 0 )
61 if ( timer > 0.5 )
62 Disable
63 endif
64 endif
65
66 if ( timer <= 4.5 )
67 "Akula door B"->Rotate Z -10
68 "Akula door A"->Rotate Z 10
69 else
70 set timer to 0
71 set opendoors to 0
72 disable ;so dagoth body goes away
73 endif
74
75endif
76
77
78end DagothUrCreature1