1 |
function scr_determine_can_attack_attackingscr_determine_can_attack_attackingfunction scr_determine_can_attack_attacking() //gml_Script_scr_determine_can_attack_attacking
{
var game_mode = global.game_mode
var battle_enemy_name = global.battle_enemy_name
if (global.game_mode == "customs")
{
}
else if (global.game_mode == "yellow")
{
switch battle_enemy_name
{
case "decibat":
if (global.enemy_sparing == true)
return false;
else
return true;
break
case "dalv":
if (global.enemy_sparing == true || global.action_2_important == true)
return false;
else
return true;
break
case "insomnitot solo":
if (global.enemy_sparing == true && global.enemy_low_hp == false)
return false;
else
return true;
break
case "insomnitot duo":
if (((global.enemy_sparing == true && global.enemy_low_hp == false) || (global.enemy_dead + global.enemy_spared) >= 1) && ((global.enemy_sparing_2 == true && global.enemy_low_hp_2 == false) || (global.enemy_dead_2 + global.enemy_spared_2) >= 1))
return false;
else
return true;
break
case "know cone insomnitot duo":
if ((global.enemy_dead + global.enemy_spared) >= 1 && global.enemy_sparing_2 == true && global.enemy_low_hp_2 == false)
return false;
else
return true;
break
case "cactony slither duo":
return true;
case "martlet pacifist":
var enemy_mode = global.enemy_mode
switch enemy_mode
{
case 2:
case 3:
case 7:
return true;
case 4:
if (global.turns_passed == 3)
return true;
else
return false;
break
case 5:
if (global.turns_passed <= 4)
return true;
else
return false;
break
case 6:
if (global.last_action_selected == "Action 3 Phase 2" || global.last_action_selected == "Action 3 Phase 1")
return true;
else
return false;
break
default:
return false;
}
break
case "martlet genocide":
enemy_mode = global.enemy_mode
switch enemy_mode
{
case 2:
if (global.hit_count >= 3)
return true;
else
return false;
break
case 3:
return true;
default:
return false;
}
break
case "dummy training pacifist":
return false;
default:
return true;
}
}
} () //gml_Script_scr_determine_can_attack_attacking |
2 |
{ |
3 |
var game_mode = global.game_mode |
4 |
var battle_enemy_name = global.battle_enemy_name |
5 |
if (global.game_mode == "customs") |
6 |
{ |
7 |
} |
8 |
else if (global.game_mode == "yellow") |
9 |
{ |
10 |
switch battle_enemy_name |
11 |
{ |
12 |
case "decibat": |
13 |
if (global.enemy_sparing == true) |
14 |
return false; |
15 |
else |
16 |
return true; |
17 |
break |
18 |
case "dalv": |
19 |
if (global.enemy_sparing == true || global.action_2_important == true) |
20 |
return false; |
21 |
else |
22 |
return true; |
23 |
break |
24 |
case "insomnitot solo": |
25 |
if (global.enemy_sparing == true && global.enemy_low_hp == false) |
26 |
return false; |
27 |
else |
28 |
return true; |
29 |
break |
30 |
case "insomnitot duo": |
31 |
if (((global.enemy_sparing == true && global.enemy_low_hp == false) || (global.enemy_dead + global.enemy_spared) >= 1) && ((global.enemy_sparing_2 == true && global.enemy_low_hp_2 == false) || (global.enemy_dead_2 + global.enemy_spared_2) >= 1)) |
32 |
return false; |
33 |
else |
34 |
return true; |
35 |
break |
36 |
case "know cone insomnitot duo": |
37 |
if ((global.enemy_dead + global.enemy_spared) >= 1 && global.enemy_sparing_2 == true && global.enemy_low_hp_2 == false) |
38 |
return false; |
39 |
else |
40 |
return true; |
41 |
break |
42 |
case "cactony slither duo": |
43 |
return true; |
44 |
case "martlet pacifist": |
45 |
var enemy_mode = global.enemy_mode |
46 |
switch enemy_mode |
47 |
{ |
48 |
case 2: |
49 |
case 3: |
50 |
case 7: |
51 |
return true; |
52 |
case 4: |
53 |
if (global.turns_passed == 3) |
54 |
return true; |
55 |
else |
56 |
return false; |
57 |
break |
58 |
case 5: |
59 |
if (global.turns_passed <= 4) |
60 |
return true; |
61 |
else |
62 |
return false; |
63 |
break |
64 |
case 6: |
65 |
if (global.last_action_selected == "Action 3 Phase 2" || global.last_action_selected == "Action 3 Phase 1") |
66 |
return true; |
67 |
else |
68 |
return false; |
69 |
break |
70 |
default: |
71 |
return false; |
72 |
} |
73 |
|
74 |
break |
75 |
case "martlet genocide": |
76 |
enemy_mode = global.enemy_mode |
77 |
switch enemy_mode |
78 |
{ |
79 |
case 2: |
80 |
if (global.hit_count >= 3) |
81 |
return true; |
82 |
else |
83 |
return false; |
84 |
break |
85 |
case 3: |
86 |
return true; |
87 |
default: |
88 |
return false; |
89 |
} |
90 |
|
91 |
break |
92 |
case "dummy training pacifist": |
93 |
return false; |
94 |
default: |
95 |
return true; |
96 |
} |
97 |
|
98 |
} |
99 |
} |