1 |
function scr_determine_low_hp_enemy_sparingscr_determine_low_hp_enemy_sparingfunction scr_determine_low_hp_enemy_sparing() //gml_Script_scr_determine_low_hp_enemy_sparing
{
var enemy_count = global.enemy_count
if (enemy_count >= 1)
{
if (global.enemy_low_hp == true)
global.enemy_sparing = true
}
if (enemy_count >= 2)
{
if (global.enemy_low_hp_2 == true)
global.enemy_sparing_2 = true
}
if (enemy_count >= 3)
{
if (global.enemy_low_hp_3 == true)
global.enemy_sparing_3 = true
}
} () //gml_Script_scr_determine_low_hp_enemy_sparing |
2 |
{ |
3 |
var enemy_count = global.enemy_count |
4 |
if (enemy_count >= 1) |
5 |
{ |
6 |
if (global.enemy_low_hp == true) |
7 |
global.enemy_sparing = true |
8 |
} |
9 |
if (enemy_count >= 2) |
10 |
{ |
11 |
if (global.enemy_low_hp_2 == true) |
12 |
global.enemy_sparing_2 = true |
13 |
} |
14 |
if (enemy_count >= 3) |
15 |
{ |
16 |
if (global.enemy_low_hp_3 == true) |
17 |
global.enemy_sparing_3 = true |
18 |
} |
19 |
} |