ColonyAldam
Bloodmoon.esm
Variables
8
Local Variables
enabled
doonce
torch
factorestate
nolore
aldammove
initialized
timer
Source
1Begin ColonyAldam
2
3
4short enabled
5short doonce
6short torch
7short factorestate
8short nolore
9short aldammove
10short initialized
11float timer
12
13
14if ( enabled == 0 )
15 if ( GetJournalIndex "CO_5" < 70 )
16 if ( GetDisabled == 0 )
17 Disable
18 endif
19 elseif ( GetJournalIndex "CO_5" >= 70 )
20 if ( GetDisabled == 1 )
21 Enable
22 set enabled to 1
23 endif
24 endif
25endif
26
27
28if ( MenuMode == 1 )
29 return
30endif
31
32if ( initialized == 0 )
33 if ( GetJournalIndex CO_6 == 40 )
34 if ( GetDistance "Uryn Maren" <= 1200 )
35 set initialized to 1
36 endif
37 endif
38endif
39
40if ( initialized == 1 )
41 if ( timer >= 10 )
42 set aldammove to 1
43 set initialized to 2
44 else
45 set timer to ( timer + GetSecondsPassed )
46 endif
47endif
48
49if ( doonce == 0 )
50 if ( GetJournalIndex "CO_6a" == 40 )
51 if ( GetItemCount "potion_cyro_whiskey_01" >= 1 )
52 set aldammove to 1
53 set doonce to 1
54 endif
55 endif
56endif
57
58if ( aldammove == 1 )
59 AITravel 4477.963 3933.645 12776.582 0
60 set aldammove to 2
61elseif ( aldammove == 2 )
62 if ( GetAIPackageDone == 1 )
63 set aldammove to 3
64 endif
65elseif ( aldammove == 3 )
66 AITravel 4470.814 4736.078 12776.582 0
67 set aldammove to 4
68elseif ( aldammove == 4 )
69 if ( GetAIPackageDone == 1 )
70 set aldammove to 5
71 endif
72elseif ( aldammove == 5 )
73 AITravel 5626.625 4726.434 12776.582 0
74 set aldammove to 6
75elseif ( aldammove == 6 )
76 if ( GetAIPackageDone == 1 )
77 set aldammove to 7
78 AiWander 0 0 0 0 0 0
79 endif
80endif
81
82
83if ( GetJournalIndex "CO_Estate" == 30 )
84 if ( GetDistance "Colony_torch_1" <= 1000 )
85 set torch to 1
86 elseif ( GetDistance "Colony_torch_2" <= 1000 )
87 set torch to 2
88 elseif ( GetDistance "Colony_torch_3" <= 1000 )
89 set torch to 3
90 else
91 set torch to 0
92 endif
93endif
94
95
96End ColonyAldam