mathisFollow
Morrowind.esm
Variables
4
Local Variables
noLore
followNow
distanceCheck
timer
Source
1Begin mathisFollow
2
3short noLore
4short followNow
5short distanceCheck
6float timer
7;global NPCVoiceDistance
8
9if ( MenuMode == 1 )
10 Return
11endif
12
13if ( GetJournalIndex HR_FindDalobar >= 70 )
14 Return
15endif
16
17if ( GetJournalIndex HR_FindDalobar < 50 )
18 Return
19endif
20
21if ( GetHealth <= 0 )
22 return
23endif
24
25if ( GetCurrentAiPackage == 3 )
26;if follow is the current package, set followNow and continue...
27
28 set followNow to 1
29 SetHello 0
30
31; if ( GetAIPackageDone == 1 )
32 ;removed since he could not reach his point...
33 ;changed to follow until INSIDE of Shrine
34; Journal HR_FindDalobar 70
35; set followNow to 0
36; AiWander 256 0 0 40 20 20 0 0 0 0 0 0
37; Say "Vo\D\M\Flw_DM004.mp3" "Thank you."
38; SetHello 30
39; endif
40
41 if ( timer < 2 )
42 set timer to ( timer + GetSecondsPassed )
43 return
44 endif
45
46 if ( GetPCCell "Maar Gan, Shrine" == 1 )
47 Journal HR_FindDalobar 70
48 set followNow to 0
49 AiWander 256 0 0 40 20 20 0 0 0 0 0 0
50 Say "Vo\D\M\Flw_DM004.mp3" "Thank you."
51 SetHello 30
52 endif
53
54 if ( GetDistance Player < NPCVoiceDistance )
55 if ( GetDistance Player < 500 )
56 set distanceCheck to 0
57 endif
58 set timer to 0
59 return
60 endif
61
62 if ( distanceCheck == 0 )
63 ;since there is not "wait for me" for Dunmer male...
64 Say "Vo\D\M\Flw_DM001.mp3" "Where are you going?"
65 set distanceCheck to 1
66 endif
67
68else
69 ;if follow is NOT the current package, make sure followNow is zero
70 set followNow to 0
71endif
72
73End