1 |
if live_call() |
2 |
return global.live_result; |
3 |
global.flowey_act[0] = irandom_range(0, 4) |
4 |
global.flowey_act[1] = irandom_range(0, 4) |
5 |
global.flowey_act[2] = irandom_range(0, 4) |
6 |
if (global.flowey_attack_number == 3 || global.flowey_attack_number == 7 || global.flowey_attack_number == 11) |
7 |
{ |
8 |
if (global.flowey_attack_number == 3) |
9 |
{ |
10 |
var index = ds_list_find_index(global.flowey_stolen_attack_list, 1) |
11 |
if (index != -1) |
12 |
{ |
13 |
global.enemy_attack = "Flowey Corrupt Attack 1" |
14 |
ds_list_delete(global.flowey_stolen_attack_list, index) |
15 |
return; |
16 |
} |
17 |
index = ds_list_find_index(global.flowey_stolen_attack_list, 6) |
18 |
if (index != -1) |
19 |
{ |
20 |
global.enemy_attack = "Flowey Corrupt Attack 6" |
21 |
ds_list_delete(global.flowey_stolen_attack_list, index) |
22 |
return; |
23 |
} |
24 |
} |
25 |
else if (global.flowey_attack_number == 7) |
26 |
{ |
27 |
index = ds_list_find_index(global.flowey_stolen_attack_list, 2) |
28 |
if (index != -1) |
29 |
{ |
30 |
global.enemy_attack = "Flowey Corrupt Attack 2" |
31 |
ds_list_delete(global.flowey_stolen_attack_list, index) |
32 |
return; |
33 |
} |
34 |
index = ds_list_find_index(global.flowey_stolen_attack_list, 3) |
35 |
if (index != -1) |
36 |
{ |
37 |
global.enemy_attack = "Flowey Corrupt Attack 3" |
38 |
ds_list_delete(global.flowey_stolen_attack_list, index) |
39 |
return; |
40 |
} |
41 |
index = ds_list_find_index(global.flowey_stolen_attack_list, 4) |
42 |
if (index != -1) |
43 |
{ |
44 |
global.enemy_attack = "Flowey Corrupt Attack 4" |
45 |
ds_list_delete(global.flowey_stolen_attack_list, index) |
46 |
return; |
47 |
} |
48 |
} |
49 |
else if (global.flowey_attack_number == 11) |
50 |
{ |
51 |
index = ds_list_find_index(global.flowey_stolen_attack_list, 5) |
52 |
if (index != -1) |
53 |
{ |
54 |
global.enemy_attack = "Flowey Corrupt Attack 5" |
55 |
ds_list_delete(global.flowey_stolen_attack_list, index) |
56 |
return; |
57 |
} |
58 |
index = ds_list_find_index(global.flowey_stolen_attack_list, 7) |
59 |
if (index != -1) |
60 |
{ |
61 |
global.enemy_attack = "Flowey Corrupt Attack 7" |
62 |
ds_list_delete(global.flowey_stolen_attack_list, index) |
63 |
return; |
64 |
} |
65 |
} |
66 |
global.enemy_attack = "Flowey Attack 10" |
67 |
} |
68 |
else if (ds_list_size(global.flowey_attack_list) >= 1) |
69 |
{ |
70 |
ds_list_shuffle(global.flowey_attack_list) |
71 |
var next_attack = ds_list_find_value(global.flowey_attack_list, 0) |
72 |
ds_list_delete(global.flowey_attack_list, 0) |
73 |
global.enemy_attack = "Flowey Attack " + string(next_attack) |
74 |
} |
75 |
else |
76 |
global.enemy_attack = "Flowey Attack 1" |
77 |
global.flowey_attack_number += 1 |