CharGenBoatNPC
Morrowind.esm
Variables
2
Local Variables
state
timer
Source
1begin CharGenBoatNPC
2
3;this is the guard on boat who says to move along
4
5short state
6float timer
7
8if ( menumode == 1)
9 return
10endif
11
12if ( GetDisabled == 1 )
13 return
14endif
15
16if ( OnActivate == 1 )
17 return
18endif
19
20if ( GetDistance, Player < 180 )
21
22 if ( SayDone == 1)
23
24 ;first greeting
25 if ( state == 0 )
26 if ( timer == 0 ) ;using a timer so he doesn't talk ALL the time
27 say, "vo\Misc\CharGenBoat1.wav", "This is where they want you. Head down to the dock and he'll show you to the Census Office."
28 set state to 10
29 endif
30
31 ;all other times after first
32 else
33 set timer to timer + GetSecondsPassed
34
35 if ( timer > 6 )
36 set timer to 0
37 say, "vo\Misc\CharGenBoat2.wav", "Let's go. Move it along."
38 endif
39
40 endif
41
42
43 endif
44
45
46endif
47
48
49end CharGenBoatNPC