IngmarFollow
Bloodmoon.esm
Variables
4
Local Variables
nolore
followNow
distanceCheck
timer
Source
1begin IngmarFollow
2
3short nolore
4short followNow
5short distanceCheck
6float timer
7
8if ( MenuMode == 1 )
9 return
10endif
11
12if ( GetJournalIndex BM_Ingmar <= 20 )
13 return
14endif
15
16if ( GetJournalIndex BM_Ingmar >= 40 )
17 return
18endif
19
20
21
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 "draugr_valbrandr" > 0 )
30 Set followNow to 0
31
32 endif
33
34 if ( timer < 2 )
35 set timer to ( timer + GetSecondsPassed)
36 return
37 endif
38
39 if ( GetDistance Player < NPCVoiceDistance )
40 if ( GetDistance Player < 500 )
41 set distanceCheck to 0
42 endif
43 set timer to 0
44 return
45 endif
46
47 if ( distanceCheck == 0 )
48 Say "Vo\N\M\Flw_NM001.mp3" "Do you know where you're going?"
49 set distanceCheck to 1
50 endif
51
52else
53 ;if follow is NOT the current package, make sure followNow is zero
54 Set followNow to 0
55endif
56
57
58
59if ( OnDeath = 1 )
60 Journal "BM_Ingmar" 35
61
62endif
63End