1 |
function scr_enemy_mode_shift_end_martlet_genocidescr_enemy_mode_shift_end_martlet_genocidefunction scr_enemy_mode_shift_end_martlet_genocide() //gml_Script_scr_enemy_mode_shift_end_martlet_genocide
{
var reset_counters = false
var enemy_mode = global.enemy_mode
switch enemy_mode
{
case 2:
if (global.hit_count >= 3)
{
global.enemy_mode_previous = global.enemy_mode
global.enemy_mode = 3
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:
global.enemy_mode_gen = 1
break
case 2:
case 3:
global.enemy_mode_gen = 2
break
case 4:
global.enemy_mode_gen = 3
break
case 5:
case 6:
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 (reset_counters == true)
{
global.turns_passed = 0
global.action_1_selected_count = 0
global.action_2_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_genocide |
2 |
{ |
3 |
var reset_counters = false |
4 |
var enemy_mode = global.enemy_mode |
5 |
switch enemy_mode |
6 |
{ |
7 |
case 2: |
8 |
if (global.hit_count >= 3) |
9 |
{ |
10 |
global.enemy_mode_previous = global.enemy_mode |
11 |
global.enemy_mode = 3 |
12 |
reset_counters = true |
13 |
} |
14 |
break |
15 |
} |
16 |
|
17 |
enemy_mode = global.enemy_mode |
18 |
var enemy_mode_gen_preprevious = global.enemy_mode_gen_previous |
19 |
var enemy_mode_gen_current = global.enemy_mode_gen |
20 |
switch enemy_mode |
21 |
{ |
22 |
case 0: |
23 |
global.enemy_mode_gen = 0 |
24 |
break |
25 |
case 1: |
26 |
global.enemy_mode_gen = 1 |
27 |
break |
28 |
case 2: |
29 |
case 3: |
30 |
global.enemy_mode_gen = 2 |
31 |
break |
32 |
case 4: |
33 |
global.enemy_mode_gen = 3 |
34 |
break |
35 |
case 5: |
36 |
case 6: |
37 |
global.enemy_mode_gen = 4 |
38 |
break |
39 |
} |
40 |
|
41 |
if (global.enemy_mode_gen != enemy_mode_gen_current) |
42 |
global.enemy_mode_gen_previous = enemy_mode_gen_current |
43 |
if (reset_counters == true) |
44 |
{ |
45 |
global.turns_passed = 0 |
46 |
global.action_1_selected_count = 0 |
47 |
global.action_2_selected_count = 0 |
48 |
global.spare_selected_count = 0 |
49 |
global.hit_count = 0 |
50 |
global.miss_count = 0 |
51 |
global.no_hit_count = 0 |
52 |
global.hurt_self_count = 0 |
53 |
global.hurt_self_turn_count = 0 |
54 |
global.item_use_count = 0 |
55 |
global.item_gift_count = 0 |
56 |
} |
57 |
} |