1 |
function scr_enemy_mode_shift_end_martlet_pacifistscr_enemy_mode_shift_end_martlet_pacifistfunction scr_enemy_mode_shift_end_martlet_pacifist() //gml_Script_scr_enemy_mode_shift_end_martlet_pacifist
{
var reset_counters = false
var enemy_mode = global.enemy_mode
switch enemy_mode
{
case 5:
if (global.turns_passed >= 6)
{
global.enemy_mode_previous = global.enemy_mode
global.enemy_mode = 6
reset_counters = true
}
break
case 6:
if (global.action_3_selected_count >= 2)
{
global.enemy_mode_previous = global.enemy_mode
global.enemy_mode = 7
reset_counters = true
}
break
}
enemy_mode = global.enemy_mode
var enemy_mode_gen_preprevious = global.enemy_mode_gen_previous
var enemy_mode_gen_current = global.enemy_mode_gen
switch enemy_mode
{
case 0:
global.enemy_mode_gen = 0
break
case 1:
case 4:
case 5:
case 6:
case 7:
global.enemy_mode_gen = 1
break
case 2:
case 3:
global.enemy_mode_gen = 2
break
case 8:
case 9:
global.enemy_mode_gen = 3
break
case 10:
case 11:
case 12:
global.enemy_mode_gen = 4
break
}
if (global.enemy_mode_gen != enemy_mode_gen_current)
global.enemy_mode_gen_previous = enemy_mode_gen_current
if ((enemy_mode_gen_preprevious == 1 && global.enemy_mode_gen_previous == 2 && global.enemy_mode_gen == 1) || (enemy_mode_gen_preprevious == 2 && global.enemy_mode_gen_previous == 1 && global.enemy_mode_gen == 2))
{
global.enemy_mode_previous = global.enemy_mode
global.enemy_mode = 12
reset_counters = true
enemy_mode = global.enemy_mode
enemy_mode_gen_current = global.enemy_mode_gen
global.enemy_mode_gen = 4
if (global.enemy_mode_gen != enemy_mode_gen_current)
global.enemy_mode_gen_previous = enemy_mode_gen_current
}
switch enemy_mode
{
case 6:
case 7:
global.action_amount = 3
break
default:
global.action_amount = 2
}
switch enemy_mode
{
case 7:
global.action_3_important = true
break
default:
global.action_3_important = false
}
if (reset_counters == true)
{
global.turns_passed = 0
global.action_1_selected_count = 0
global.action_2_selected_count = 0
global.action_3_selected_count = 0
global.spare_selected_count = 0
global.hit_count = 0
global.miss_count = 0
global.no_hit_count = 0
global.hurt_self_count = 0
global.hurt_self_turn_count = 0
global.item_use_count = 0
global.item_gift_count = 0
}
... () //gml_Script_scr_enemy_mode_shift_end_martlet_pacifist |
2 |
{ |
3 |
var reset_counters = false |
4 |
var enemy_mode = global.enemy_mode |
5 |
switch enemy_mode |
6 |
{ |
7 |
case 5: |
8 |
if (global.turns_passed >= 6) |
9 |
{ |
10 |
global.enemy_mode_previous = global.enemy_mode |
11 |
global.enemy_mode = 6 |
12 |
reset_counters = true |
13 |
} |
14 |
break |
15 |
case 6: |
16 |
if (global.action_3_selected_count >= 2) |
17 |
{ |
18 |
global.enemy_mode_previous = global.enemy_mode |
19 |
global.enemy_mode = 7 |
20 |
reset_counters = true |
21 |
} |
22 |
break |
23 |
} |
24 |
|
25 |
enemy_mode = global.enemy_mode |
26 |
var enemy_mode_gen_preprevious = global.enemy_mode_gen_previous |
27 |
var enemy_mode_gen_current = global.enemy_mode_gen |
28 |
switch enemy_mode |
29 |
{ |
30 |
case 0: |
31 |
global.enemy_mode_gen = 0 |
32 |
break |
33 |
case 1: |
34 |
case 4: |
35 |
case 5: |
36 |
case 6: |
37 |
case 7: |
38 |
global.enemy_mode_gen = 1 |
39 |
break |
40 |
case 2: |
41 |
case 3: |
42 |
global.enemy_mode_gen = 2 |
43 |
break |
44 |
case 8: |
45 |
case 9: |
46 |
global.enemy_mode_gen = 3 |
47 |
break |
48 |
case 10: |
49 |
case 11: |
50 |
case 12: |
51 |
global.enemy_mode_gen = 4 |
52 |
break |
53 |
} |
54 |
|
55 |
if (global.enemy_mode_gen != enemy_mode_gen_current) |
56 |
global.enemy_mode_gen_previous = enemy_mode_gen_current |
57 |
if ((enemy_mode_gen_preprevious == 1 && global.enemy_mode_gen_previous == 2 && global.enemy_mode_gen == 1) || (enemy_mode_gen_preprevious == 2 && global.enemy_mode_gen_previous == 1 && global.enemy_mode_gen == 2)) |
58 |
{ |
59 |
global.enemy_mode_previous = global.enemy_mode |
60 |
global.enemy_mode = 12 |
61 |
reset_counters = true |
62 |
enemy_mode = global.enemy_mode |
63 |
enemy_mode_gen_current = global.enemy_mode_gen |
64 |
global.enemy_mode_gen = 4 |
65 |
if (global.enemy_mode_gen != enemy_mode_gen_current) |
66 |
global.enemy_mode_gen_previous = enemy_mode_gen_current |
67 |
} |
68 |
switch enemy_mode |
69 |
{ |
70 |
case 6: |
71 |
case 7: |
72 |
global.action_amount = 3 |
73 |
break |
74 |
default: |
75 |
global.action_amount = 2 |
76 |
} |
77 |
|
78 |
switch enemy_mode |
79 |
{ |
80 |
case 7: |
81 |
global.action_3_important = true |
82 |
break |
83 |
default: |
84 |
global.action_3_important = false |
85 |
} |
86 |
|
87 |
if (reset_counters == true) |
88 |
{ |
89 |
global.turns_passed = 0 |
90 |
global.action_1_selected_count = 0 |
91 |
global.action_2_selected_count = 0 |
92 |
global.action_3_selected_count = 0 |
93 |
global.spare_selected_count = 0 |
94 |
global.hit_count = 0 |
95 |
global.miss_count = 0 |
96 |
global.no_hit_count = 0 |
97 |
global.hurt_self_count = 0 |
98 |
global.hurt_self_turn_count = 0 |
99 |
global.item_use_count = 0 |
100 |
global.item_gift_count = 0 |
101 |
} |
102 |
} |