1 |
var _temp_local_var_2, _temp_local_var_3, _temp_local_var_4, _temp_local_var_5, _temp_local_var_6; |
2 |
function scr_determine_can_display_enemy_hp_uiscr_determine_can_display_enemy_hp_uivar _temp_local_var_2, _temp_local_var_3, _temp_local_var_4, _temp_local_var_5, _temp_local_var_6;
function scr_determine_can_display_enemy_hp_ui() //gml_Script_scr_determine_can_display_enemy_hp_ui
{
hp_ui_alpha_1 = 1
hp_ui_alpha_2 = 1
hp_ui_alpha_3 = 1
var game_mode = global.game_mode
var enemy_count = global.enemy_count
var battle_enemy_name = global.battle_enemy_name
if (global.game_mode == "customs")
var _temp_local_var_2 = battle_enemy_name
else if (global.game_mode == "yellow")
{
switch battle_enemy_name
{
case "dummy training pacifist":
hp_ui_alpha_1 = 0
break
default:
}
}
if (enemy_count >= 2)
{
battle_enemy_name = global.battle_enemy_name_2
if (global.game_mode == "customs")
var _temp_local_var_3 = battle_enemy_name
else if (global.game_mode == "yellow")
var _temp_local_var_6 = battle_enemy_name
}
if (enemy_count >= 3)
{
battle_enemy_name = global.battle_enemy_name_3
if (global.game_mode == "customs")
var _temp_local_var_4 = battle_enemy_name
else if (global.game_mode == "yellow")
var _temp_local_var_5 = battle_enemy_name
}
if instance_exists(obj_battle_hp_current_enemy)
{
with (obj_battle_hp_current_enemy)
image_alpha = obj_heart_battle_menu.hp_ui_alpha_1
with (obj_battle_hp_max_enemy)
image_alpha = obj_heart_battle_menu.hp_ui_alpha_1
}
if instance_exists(obj_battle_hp_current_enemy_2)
{
with (obj_battle_hp_current_enemy_2)
image_alpha = obj_heart_battle_menu.hp_ui_alpha_2
with (obj_battle_hp_max_enemy_2)
image_alpha = obj_heart_battle_menu.hp_ui_alpha_2
}
if instance_exists(obj_battle_hp_current_enemy_3)
{
with (obj_battle_hp_current_enemy_3)
image_alpha = obj_heart_battle_menu.hp_ui_alpha_3
with (obj_battle_hp_max_enemy_3)
image_alpha = obj_heart_battle_menu.hp_ui_alpha_3
}
} () //gml_Script_scr_determine_can_display_enemy_hp_ui |
3 |
{ |
4 |
hp_ui_alpha_1 = 1 |
5 |
hp_ui_alpha_2 = 1 |
6 |
hp_ui_alpha_3 = 1 |
7 |
var game_mode = global.game_mode |
8 |
var enemy_count = global.enemy_count |
9 |
var battle_enemy_name = global.battle_enemy_name |
10 |
if (global.game_mode == "customs") |
11 |
var _temp_local_var_2 = battle_enemy_name |
12 |
else if (global.game_mode == "yellow") |
13 |
{ |
14 |
switch battle_enemy_name |
15 |
{ |
16 |
case "dummy training pacifist": |
17 |
hp_ui_alpha_1 = 0 |
18 |
break |
19 |
default: |
20 |
|
21 |
} |
22 |
|
23 |
} |
24 |
if (enemy_count >= 2) |
25 |
{ |
26 |
battle_enemy_name = global.battle_enemy_name_2 |
27 |
if (global.game_mode == "customs") |
28 |
var _temp_local_var_3 = battle_enemy_name |
29 |
else if (global.game_mode == "yellow") |
30 |
var _temp_local_var_6 = battle_enemy_name |
31 |
} |
32 |
if (enemy_count >= 3) |
33 |
{ |
34 |
battle_enemy_name = global.battle_enemy_name_3 |
35 |
if (global.game_mode == "customs") |
36 |
var _temp_local_var_4 = battle_enemy_name |
37 |
else if (global.game_mode == "yellow") |
38 |
var _temp_local_var_5 = battle_enemy_name |
39 |
} |
40 |
if instance_exists(obj_battle_hp_current_enemy) |
41 |
{ |
42 |
with (obj_battle_hp_current_enemy) |
43 |
image_alpha = obj_heart_battle_menu.hp_ui_alpha_1 |
44 |
with (obj_battle_hp_max_enemy) |
45 |
image_alpha = obj_heart_battle_menu.hp_ui_alpha_1 |
46 |
} |
47 |
if instance_exists(obj_battle_hp_current_enemy_2) |
48 |
{ |
49 |
with (obj_battle_hp_current_enemy_2) |
50 |
image_alpha = obj_heart_battle_menu.hp_ui_alpha_2 |
51 |
with (obj_battle_hp_max_enemy_2) |
52 |
image_alpha = obj_heart_battle_menu.hp_ui_alpha_2 |
53 |
} |
54 |
if instance_exists(obj_battle_hp_current_enemy_3) |
55 |
{ |
56 |
with (obj_battle_hp_current_enemy_3) |
57 |
image_alpha = obj_heart_battle_menu.hp_ui_alpha_3 |
58 |
with (obj_battle_hp_max_enemy_3) |
59 |
image_alpha = obj_heart_battle_menu.hp_ui_alpha_3 |
60 |
} |
61 |
} |