ulyneFollow
Morrowind.esm
Variables
4
Local Variables
noLore
followNow
distanceCheck
timer
Source
1begin ulyneFollow
2
3short noLore
4short followNow
5short distanceCheck
6float timer
7
8if ( MenuMode == 1 )
9 return
10endif
11
12if ( GetJournalIndex FG_Vas >= 80 )
13 return
14endif
15
16if ( GetJournalIndex FG_Vas < 50 )
17 return
18endif
19
20if ( GetHealth <= 0 )
21 return
22endif
23
24if ( GetCurrentAiPackage == 3 )
25 ;if follow is the current package, set followNow and continue...
26 set followNow to 1
27 SetHello 0
28
29 if ( GetDeadCount "Daris Adram" > 0 )
30 ;if the Necromancer is dead, give the player feedback journal, reset followNow, and give Wander package
31 Journal FG_Vas 70
32 Set followNow to 0
33 AiWander 256 0 0 40 20 20 0 0 0 0 0 0
34 ForceGreeting
35 SetHello 30
36 endif
37
38 if ( timer < 2 )
39 set timer to ( timer + GetSecondsPassed)
40 return
41 endif
42
43 if ( GetDistance Player < NPCVoiceDistance )
44 if ( GetDistance Player < 500 )
45 set distanceCheck to 0
46 endif
47 set timer to 0
48 return
49 endif
50
51 if ( distanceCheck == 0 )
52 Say "Vo\D\F\Flw_DF004.mp3" "Hey! Wait for me!"
53 set distanceCheck to 1
54 endif
55
56else
57 ;if follow is NOT the current package, make sure followNow is zero
58 Set followNow to 0
59endif
60
61End