fonus_rathryon
Morrowind.esm
Variables
4
Local Variables
fonusGreet
doonce
nolore
timer
Source
1Begin fonus_rathryon
2
3float timer
4short fonusGreet
5short doonce
6short nolore
7
8if ( doonce == -1 )
9 return
10endif
11
12if ( GetJournalIndex "MV_PoorPilgrim" >= 20 )
13 if ( GetDistance Player < 512 )
14 if ( GetDistance "Ex_Cave_Door_01_Koal" < 400 )
15 Journal "MV_PoorPilgrim" 90
16 ;AiWander 128,0,0,60,30,10,0,0,0,0,0,0
17 ;MessageBox "SET WANDER ON"
18 ForceGreeting
19 set doonce to -1
20 endif
21 endif
22endif
23
24if ( GetCurrentAiPackage != 3 )
25 return
26endif
27
28set timer to timer + GetSecondsPassed
29
30if ( timer > 720 ) ;12 minutes
31 set timer to 0
32
33 if ( GetDistance Player < 512 )
34 set fonusGreet to ( fonusGreet + 1 )
35 ForceGreeting
36 endif
37endif
38
39if ( OnDeath == 1 )
40 Journal "MV_PoorPilgrim" 120
41endif
42
43End