1 |
function scr_determine_enemy_attackscr_determine_enemy_attackfunction scr_determine_enemy_attack() //gml_Script_scr_determine_enemy_attack
{
var determine_attack_priority = global.determine_attack_priority
var battle_enemy_name = global.battle_enemy_name
var turns_passed = global.turns_passed
if (battle_enemy_name == "craniex")
{
if (turns_passed > 5)
{
global.turns_passed = 3
turns_passed = global.turns_passed
}
if (turns_passed == 0)
{
global.action_amount = 3
global.enemy_attack = "Falling Stars"
global.soul_mode = "Red"
global.image_alpha_enemy_attacking_immunity = false
}
else if (turns_passed == 1)
{
global.action_amount = 3
global.enemy_attack = "Graphing Exercise"
global.soul_mode = "Red"
global.image_alpha_enemy_attacking_immunity = false
}
else if (turns_passed == 2)
{
global.action_amount = 3
global.enemy_attack = "Virus Dodge"
global.soul_mode = "Red"
global.image_alpha_enemy_attacking_immunity = false
}
else if (turns_passed == 3)
{
global.action_amount = 3
global.enemy_attack = "Falling Stars Pro"
global.soul_mode = "Red"
global.image_alpha_enemy_attacking_immunity = false
}
else if (turns_passed == 4)
{
global.action_amount = 3
global.enemy_attack = "Graphing Exercise Pro"
global.soul_mode = "Red"
global.image_alpha_enemy_attacking_immunity = false
}
else if (turns_passed == 5)
{
global.action_amount = 3
global.enemy_attack = "Virus Dodge Pro"
global.soul_mode = "Red"
global.image_alpha_enemy_attacking_immunity = false
}
}
if (battle_enemy_name == "ms mettaton")
{
var ms_mettaton_transformed = global.ms_mettaton_transformed
if (ms_mettaton_transformed == false && turns_passed > 4)
{
global.turns_passed = 4
turns_passed = global.turns_passed
}
else if (ms_mettaton_transformed == true && turns_passed > 19)
{
global.turns_passed = 5
turns_passed = global.turns_passed
}
if (turns_passed == 0)
{
global.action_amount = 1
global.enemy_attack = "Ms. Mettaton Turn Soul Blue"
global.soul_mode = "Red"
global.image_alpha_enemy_attacking_immunity = true
}
else if (turns_passed == 1)
{
global.action_amount = 1
global.enemy_attack = "Minion Rush 1"
global.soul_mode = "Blue"
global.image_alpha_enemy_attacking_immunity = false
}
else if (turns_passed == 2)
{
global.action_amount = 1
global.enemy_attack = "Minion Ambush 1"
global.soul_mode = "Blue"
global.image_alpha_enemy_attacking_immunity = false
}
else if (turns_passed == 3)
{
global.action_amount = 1
global.enemy_attack = "Ms. Mettaton Fists 1"
global.soul_mode = "Blue"
global.image_alpha_enemy_attacking_immunity = false
}
else if (turns_passed == 4)
{
global.action_amount = 1
global.action_1_important = true
global.enemy_attack = "Ms. Mettaton Bored Of Fighting"
... () //gml_Script_scr_determine_enemy_attack |
2 |
{ |
3 |
var determine_attack_priority = global.determine_attack_priority |
4 |
var battle_enemy_name = global.battle_enemy_name |
5 |
var turns_passed = global.turns_passed |
6 |
if (battle_enemy_name == "craniex") |
7 |
{ |
8 |
if (turns_passed > 5) |
9 |
{ |
10 |
global.turns_passed = 3 |
11 |
turns_passed = global.turns_passed |
12 |
} |
13 |
if (turns_passed == 0) |
14 |
{ |
15 |
global.action_amount = 3 |
16 |
global.enemy_attack = "Falling Stars" |
17 |
global.soul_mode = "Red" |
18 |
global.image_alpha_enemy_attacking_immunity = false |
19 |
} |
20 |
else if (turns_passed == 1) |
21 |
{ |
22 |
global.action_amount = 3 |
23 |
global.enemy_attack = "Graphing Exercise" |
24 |
global.soul_mode = "Red" |
25 |
global.image_alpha_enemy_attacking_immunity = false |
26 |
} |
27 |
else if (turns_passed == 2) |
28 |
{ |
29 |
global.action_amount = 3 |
30 |
global.enemy_attack = "Virus Dodge" |
31 |
global.soul_mode = "Red" |
32 |
global.image_alpha_enemy_attacking_immunity = false |
33 |
} |
34 |
else if (turns_passed == 3) |
35 |
{ |
36 |
global.action_amount = 3 |
37 |
global.enemy_attack = "Falling Stars Pro" |
38 |
global.soul_mode = "Red" |
39 |
global.image_alpha_enemy_attacking_immunity = false |
40 |
} |
41 |
else if (turns_passed == 4) |
42 |
{ |
43 |
global.action_amount = 3 |
44 |
global.enemy_attack = "Graphing Exercise Pro" |
45 |
global.soul_mode = "Red" |
46 |
global.image_alpha_enemy_attacking_immunity = false |
47 |
} |
48 |
else if (turns_passed == 5) |
49 |
{ |
50 |
global.action_amount = 3 |
51 |
global.enemy_attack = "Virus Dodge Pro" |
52 |
global.soul_mode = "Red" |
53 |
global.image_alpha_enemy_attacking_immunity = false |
54 |
} |
55 |
} |
56 |
if (battle_enemy_name == "ms mettaton") |
57 |
{ |
58 |
var ms_mettaton_transformed = global.ms_mettaton_transformed |
59 |
if (ms_mettaton_transformed == false && turns_passed > 4) |
60 |
{ |
61 |
global.turns_passed = 4 |
62 |
turns_passed = global.turns_passed |
63 |
} |
64 |
else if (ms_mettaton_transformed == true && turns_passed > 19) |
65 |
{ |
66 |
global.turns_passed = 5 |
67 |
turns_passed = global.turns_passed |
68 |
} |
69 |
if (turns_passed == 0) |
70 |
{ |
71 |
global.action_amount = 1 |
72 |
global.enemy_attack = "Ms. Mettaton Turn Soul Blue" |
73 |
global.soul_mode = "Red" |
74 |
global.image_alpha_enemy_attacking_immunity = true |
75 |
} |
76 |
else if (turns_passed == 1) |
77 |
{ |
78 |
global.action_amount = 1 |
79 |
global.enemy_attack = "Minion Rush 1" |
80 |
global.soul_mode = "Blue" |
81 |
global.image_alpha_enemy_attacking_immunity = false |
82 |
} |
83 |
else if (turns_passed == 2) |
84 |
{ |
85 |
global.action_amount = 1 |
86 |
global.enemy_attack = "Minion Ambush 1" |
87 |
global.soul_mode = "Blue" |
88 |
global.image_alpha_enemy_attacking_immunity = false |
89 |
} |
90 |
else if (turns_passed == 3) |
91 |
{ |
92 |
global.action_amount = 1 |
93 |
global.enemy_attack = "Ms. Mettaton Fists 1" |
94 |
global.soul_mode = "Blue" |
95 |
global.image_alpha_enemy_attacking_immunity = false |
96 |
} |
97 |
else if (turns_passed == 4) |
98 |
{ |
99 |
global.action_amount = 1 |
100 |
global.action_1_important = true |
101 |
global.enemy_attack = "Ms. Mettaton Bored Of Fighting" |
102 |
global.soul_mode = "Blue" |
103 |
global.image_alpha_enemy_attacking_immunity = true |
104 |
} |
105 |
else if (turns_passed == 5) |
106 |
{ |
107 |
global.action_amount = 3 |
108 |
global.action_1_important = false |
109 |
global.enemy_attack = "Minion Rush 2" |
110 |
global.soul_mode = "Blue" |
111 |
global.image_alpha_enemy_attacking_immunity = false |
112 |
} |
113 |
else if (turns_passed == 6) |
114 |
{ |
115 |
global.action_amount = 3 |
116 |
global.enemy_attack = "Minion Ambush 2" |
117 |
global.soul_mode = "Blue" |
118 |
global.image_alpha_enemy_attacking_immunity = false |
119 |
} |
120 |
else if (turns_passed == 7) |
121 |
{ |
122 |
global.action_amount = 3 |
123 |
global.enemy_attack = "Ms. Mettaton Fists 2" |
124 |
global.soul_mode = "Blue" |
125 |
global.image_alpha_enemy_attacking_immunity = false |
126 |
} |
127 |
else if (turns_passed == 8) |
128 |
{ |
129 |
global.action_amount = 3 |
130 |
global.enemy_attack = "Ms. Mettaton Fists 3" |
131 |
global.soul_mode = "Blue" |
132 |
global.image_alpha_enemy_attacking_immunity = false |
133 |
} |
134 |
else if (turns_passed == 9) |
135 |
{ |
136 |
global.action_amount = 3 |
137 |
global.enemy_attack = "Ms. Mettaton Happy Breaktime" |
138 |
global.soul_mode = "Blue" |
139 |
global.image_alpha_enemy_attacking_immunity = false |
140 |
} |
141 |
else if (turns_passed == 10) |
142 |
{ |
143 |
global.action_amount = 3 |
144 |
global.ms_mettaton_popularity_rating = "GOOD!!" |
145 |
global.enemy_attack = "Minion Rush 3" |
146 |
global.soul_mode = "Blue" |
147 |
global.image_alpha_enemy_attacking_immunity = false |
148 |
} |
149 |
else if (turns_passed == 11) |
150 |
{ |
151 |
global.action_amount = 3 |
152 |
global.enemy_attack = "Minion Ambush 3" |
153 |
global.soul_mode = "Blue" |
154 |
global.image_alpha_enemy_attacking_immunity = false |
155 |
} |
156 |
else if (turns_passed == 12) |
157 |
{ |
158 |
global.action_amount = 3 |
159 |
global.enemy_attack = "Ms. Mettaton Fists 4" |
160 |
global.soul_mode = "Blue" |
161 |
global.image_alpha_enemy_attacking_immunity = false |
162 |
} |
163 |
else if (turns_passed == 13) |
164 |
{ |
165 |
global.action_amount = 3 |
166 |
global.enemy_attack = "Ms. Mettaton Fists 5" |
167 |
global.soul_mode = "Blue" |
168 |
global.image_alpha_enemy_attacking_immunity = false |
169 |
} |
170 |
else if (turns_passed == 14) |
171 |
{ |
172 |
global.action_amount = 3 |
173 |
global.enemy_attack = "Ms. Mettaton Happy Breaktime" |
174 |
global.soul_mode = "Blue" |
175 |
global.image_alpha_enemy_attacking_immunity = false |
176 |
} |
177 |
else if (turns_passed == 15) |
178 |
{ |
179 |
global.action_amount = 3 |
180 |
global.ms_mettaton_popularity_rating = "FABU!!" |
181 |
global.enemy_attack = "Minion Rush 4" |
182 |
global.soul_mode = "Blue" |
183 |
global.image_alpha_enemy_attacking_immunity = false |
184 |
} |
185 |
else if (turns_passed == 16) |
186 |
{ |
187 |
global.action_amount = 3 |
188 |
global.enemy_attack = "Minion Ambush 4" |
189 |
global.soul_mode = "Blue" |
190 |
global.image_alpha_enemy_attacking_immunity = false |
191 |
} |
192 |
else if (turns_passed == 17) |
193 |
{ |
194 |
global.action_amount = 3 |
195 |
global.enemy_attack = "Ms. Mettaton Fists 6" |
196 |
global.soul_mode = "Blue" |
197 |
global.image_alpha_enemy_attacking_immunity = false |
198 |
} |
199 |
else if (turns_passed == 18) |
200 |
{ |
201 |
global.action_amount = 3 |
202 |
global.enemy_attack = "Ms. Mettaton Fists 7" |
203 |
global.soul_mode = "Blue" |
204 |
global.image_alpha_enemy_attacking_immunity = false |
205 |
} |
206 |
else if (turns_passed == 19) |
207 |
{ |
208 |
global.action_amount = 3 |
209 |
global.important_cutscene = true |
210 |
} |
211 |
} |
212 |
} |