edras_oril
Morrowind.esm
Variables
3
Local Variables
done
nolore
inviso
Source
1Begin edras_oril
2
3short done
4short nolore
5short inviso
6
7if ( MenuMode == 1 )
8 return
9endif
10
11if ( done == -1 )
12 return
13endif
14
15if ( GetJournalIndex "MV_StrayedPilgrim" == 29 )
16 return
17endif
18
19 if ( GetEffect sEffectInvisibility == 1 )
20 set inviso to 1
21 elseif ( GetEffect sEffectChameleon == 1 )
22 set inviso to 1
23 elseif ( GetEffect sEffectChameleon == 0 )
24 if ( GetEffect sEffectInvisibility == 0 )
25 set inviso to 0
26 endif
27 endif
28
29 if ( GetEffect sEffectInvisibility == 1 )
30 if ( GetJournalIndex "MV_StrayedPilgrim" ==26 )
31 Journal "MV_StrayedPilgrim" 27
32 ForceGreeting
33 endif
34 elseif ( GetEffect sEffectChameleon == 1 )
35 if ( GetJournalIndex "MV_StrayedPilgrim" == 26 )
36 Journal "MV_StrayedPilgrim" 27
37 ForceGreeting
38 endif
39 endif
40
41 if ( GetJournalIndex "MV_StrayedPilgrim" != 27 )
42 if ( GetEffect sEffectInvisibility == 1 )
43 if ( GetJournalIndex "MV_StrayedPilgrim" > 20 )
44 if ( GetJournalIndex "MV_StrayedPilgrim" < 45 )
45 Journal "MV_StrayedPilgrim" 45
46 ForceGreeting
47 endif
48 endif
49 elseif ( GetEffect sEffectChameleon == 1 )
50 if ( GetJournalIndex "MV_StrayedPilgrim" > 20 )
51 if ( GetJournalIndex "MV_StrayedPilgrim" < 45 )
52 Journal "MV_StrayedPilgrim" 45
53 ForceGreeting
54 endif
55 endif
56 endif
57 endif
58
59if ( done == 0 )
60 if ( GetDistance "Thoronor" <= 512 )
61 Journal "MV_StrayedPilgrim" 90
62 AiFollow Thoronor 0,0,0,60,20,10,0,0,0,0,0,0
63 set done to -1
64 endif
65endif
66
67end