FaluraScript
Morrowind.esm
Variables
5
Local Variables
noLore
followDone
followNow
distanceCheck
timer
Source
1Begin FaluraScript
2
3; when Kaushad demands a bride, disable Am-Lima [if necessary to clear the cage]
4; and enable Falura Llervu
5; follow script on Falura Llervu
6; Main quest B3_ZainabBride
7; follow PC to Zainab camp to meet Ashkhan Kaushad, her new husband
8; NB: Falura is a slave, but has none of the standard slave script or trappings...
9; no slaveStatus or slave bracers
10
11short noLore
12short followDone
13short followNow
14short distanceCheck
15float timer
16
17if ( MenuMode == 1 )
18 Return
19endif
20
21if ( FollowDone == 1 )
22 Return
23endif
24
25if ( GetHealth <= 0 )
26 return
27endif
28
29if ( GetCurrentAiPackage == 3 )
30 set followNow to 1
31 SetHello 0
32
33 if ( GetAIPackageDone == 1 )
34 set followDone to 1
35 set followNow to 0
36 AiWander 128 0 0 40 20 20 0 0 0 0 0 0
37 Journal B3_ZainabBride 47
38 Say "Vo\D\F\Flw_DF003.mp3" "Thank you."
39 ForceGreeting
40 SetHello 30
41 endif
42
43 if ( GetPCCell "Zainab Camp, Ashkhan's Yurt" == 1 )
44 set followDone to 1
45 set followNow to 0
46 AiWander 128 0 0 40 20 20 0 0 0 0 0 0
47 Journal B3_ZainabBride 47
48 Say "Vo\D\F\Flw_DF003.mp3" "Thank you."
49 ForceGreeting
50 SetHello 30
51 endif
52
53 if ( timer < 3 )
54 set timer to ( timer + GetSecondsPassed )
55 return
56 endif
57
58 if ( GetDistance Player < NPCVoiceDistance )
59 if ( GetDistance Player < 500 )
60 set distanceCheck to 0
61 endif
62 set timer to 0
63 return
64 endif
65
66 if ( distanceCheck == 0 )
67 Say "Vo\D\F\Flw_DF004.mp3" "Hey! Wait for me!"
68 set distanceCheck to 1
69 endif
70
71else
72 set followNow to 0
73endif
74
75End