hlormarScript
Morrowind.esm
Variables
3
Local Variables
followOn
greetonce
nolore
Source
1Begin hlormarScript
2
3short followOn
4short greetonce
5short nolore
6
7if ( GetJournalIndex "MV_AbusedHealer" >= 80 )
8 return
9endif
10
11if ( MenuMode == 1 )
12 return
13 ;don't run time in Menu Mode. Very bad.
14endif
15
16If ( GetCurrentAIPackage == 3 )
17 set followOn to 1
18endif
19
20if ( GetCurrentAIPackage != 3 )
21 set followOn to 0
22endif
23
24if ( greetonce == 0 )
25 if ( Player->GetItemCount "cloudcleaver_unique" > 0 )
26 if ( GetDistance Player <= 512 )
27 ForceGreeting
28 ;set greetonce to -1
29 endif
30 endif
31endif
32
33
34
35
36;short Greeted
37
38;if ( Greeted == 1 )
39; return
40;endif
41
42;if ( GetJournalIndex "MV_AbusedHealer" != 50 )
43; return
44;endif
45
46;if ( Greeted == 0 )
47; If ( GetJournalIndex "MV_AbusedHealer" == 50 )
48; ForceGreeting
49; Set Greeted to 1
50; endif
51;endif
52
53end