delynaScript
Morrowind.esm
Variables
5
Local Variables
doOnce
noLore
followNow
distanceCheck
timer
Source
1Begin delynaScript
2
3;if her father is dead and you tell her, she will stop
4short doOnce
5
6short noLore
7short followNow
8short distanceCheck
9float timer
10
11if ( MenuMode == 1 )
12 Return
13endif
14
15if ( GetJournalIndex HR_RansomMandas >= 70 )
16 Return
17endif
18
19if ( GetJournalIndex HR_RansomMandas < 50 )
20 Return
21endif
22
23if ( GetHealth <= 0 )
24 return
25endif
26
27if ( GetCurrentAiPackage == 3 )
28;if follow is the current package, set followNow and continue...
29
30 set followNow to 1
31 SetHello 0
32
33 if ( GetPCCell "Tel Fyr" == 1 )
34 ;if Delyna is outside
35 Journal HR_RansomMandas 70
36 set followNow to 0
37 AiWander 256 0 0 40 20 20 0 0 0 0 0 0
38 Say "Vo\D\F\Flw_DF003.mp3" "Thank you."
39 ForceGreeting
40 SetHello 30
41 endif
42
43 if ( timer < 3 )
44 set timer to ( timer + GetSecondsPassed )
45 return
46 endif
47
48 if ( GetDistance Player < NPCVoiceDistance )
49 if ( GetDistance Player < 500 )
50 set distanceCheck to 0
51 endif
52 set timer to 0
53 return
54 endif
55
56 if ( distanceCheck == 0 )
57 Say "Vo\D\F\Flw_DF004.mp3" "Hey! Wait for me!"
58 set distanceCheck to 1
59 endif
60
61else
62 ;if follow is NOT the current package, make sure followNow is zero
63 set followNow to 0
64endif
65
66End