MirisaFollow
Bloodmoon.esm
Variables
4
Local Variables
noLore
followNow
distanceCheck
timer
Source
1Begin MirisaFollow
2
3short noLore
4short followNow
5short distanceCheck
6float timer
7;global NPCVoiceDistance
8
9if ( MenuMode == 1 )
10 Return
11endif
12
13if ( OnDeath == 1 )
14 if ( GetJournalIndex BM_Missionary >= 10 )
15 if ( GetJournalIndex BM_Missionary < 100 )
16 Journal BM_Missionary 120
17 endif
18 endif
19endif
20
21if ( GetJournalIndex BM_Missionary = 100 )
22 Return
23endif
24
25if ( GetJournalIndex "BM_Missionary" < 60 )
26 Return
27endif
28
29
30if ( GetHealth <= 0 )
31 return
32endif
33
34if ( GetCurrentAiPackage == 3 )
35;if follow is the current package, set followNow and continue...
36
37 set followNow to 1
38 SetHello 0
39
40 if ( timer < 2 )
41 set timer to ( timer + GetSecondsPassed )
42 return
43 endif
44
45 if ( GetPCCell "Fort Frostmoth, Imperial Cult Shrine" == 1 )
46 Journal BM_Missionary 100
47 set followNow to 0
48 AiWander 256 0 0 40 20 20 0 0 0 0 0 0
49 Say "Vo\R\F\Flw_RF006.mp3" "Thank you."
50 SetHello 30
51 endif
52
53 if ( GetDistance Player < NPCVoiceDistance )
54 if ( GetDistance Player < 500 )
55 set distanceCheck to 0
56 endif
57 set timer to 0
58 return
59 endif
60
61 if ( distanceCheck == 0 )
62 Say "Vo\R\F\Flw_RF004.mp3" "Wait for me!"
63 set distanceCheck to 1
64 endif
65
66else
67 ;if follow is NOT the current package, make sure followNow is zero
68 set followNow to 0
69endif
70
71End MirisaFollow