1 |
global.enemy_attacking = false |
2 |
instance_create(32, 250, obj_dialogue_box_battle) |
3 |
if (global.last_text_move_select == -1) |
4 |
script_execute(gml_Script_scr_late_audio_enemy_encounter) |
5 |
if (global.last_text_move_select < 1) |
6 |
global.last_text_move_select += 1 |
7 |
var game_mode = global.game_mode |
8 |
if (game_mode == "customs") |
9 |
{ |
10 |
global.determine_attack_priority = 1 |
11 |
script_execute(gml_Script_scr_determine_enemy_attack) |
12 |
} |
13 |
else if (game_mode == "yellow") |
14 |
{ |
15 |
global.determine_attack_priority = 1 |
16 |
script_execute(gml_Script_scr_determine_enemy_attack_yellow) |
17 |
} |
18 |
if (global.important_cutscene == false) |
19 |
{ |
20 |
with (obj_heart_battle_menu) |
21 |
event_user(0) |
22 |
} |
23 |
instance_destroy() |