1 |
function scr_enemy_timer_attacks_dunebud_soloscr_enemy_timer_attacks_dunebud_solofunction scr_enemy_timer_attacks_dunebud_solo() //gml_Script_scr_enemy_timer_attacks_dunebud_solo
{
var enemy_attack = global.enemy_attack
if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true)
{
if (enemy_attack == "Dunebud Chase" && (!instance_exists(obj_battle_enemy_attack_dunebud_chase_enemy)))
{
var chosen_dunebud = obj_dunebud_a
if (instance_exists(obj_dunebud_b) && (global.enemy_spared || global.enemy_dead))
chosen_dunebud = 3193
instance_create(chosen_dunebud.x, chosen_dunebud.y, obj_battle_enemy_attack_dunebud_chase_enemy)
}
else if (enemy_attack == "Dunebud Sandcastle" && (!instance_exists(obj_battle_enemy_attack_dunebud_sandcastle_bucket)) && (!instance_exists(obj_battle_enemy_attack_dunebud_sandcastle_sandcastle)))
{
var script_tgt = obj_dialogue_box_battle_transformation_any
scr_create_attack_boundary((script_tgt.bbox_left + 5), (script_tgt.bbox_top + 5), (script_tgt.sprite_width - 10), (script_tgt.sprite_height - 10), 20, 0)
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), (obj_dialogue_box_battle_transformation_any.bbox_top - 20), obj_battle_enemy_attack_dunebud_sandcastle_bucket)
}
else if (enemy_attack == "Dunebud Tumbleweeds" && (!instance_exists(obj_battle_enemy_attack_dunebud_tumbleweeds_creator)))
instance_create(0, 0, obj_battle_enemy_attack_dunebud_tumbleweeds_creator)
}
} () //gml_Script_scr_enemy_timer_attacks_dunebud_solo |
2 |
{ |
3 |
var enemy_attack = global.enemy_attack |
4 |
if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true) |
5 |
{ |
6 |
if (enemy_attack == "Dunebud Chase" && (!instance_exists(obj_battle_enemy_attack_dunebud_chase_enemy))) |
7 |
{ |
8 |
var chosen_dunebud = obj_dunebud_a |
9 |
if (instance_exists(obj_dunebud_b) && (global.enemy_spared || global.enemy_dead)) |
10 |
chosen_dunebud = 3193 |
11 |
instance_create(chosen_dunebud.x, chosen_dunebud.y, obj_battle_enemy_attack_dunebud_chase_enemy) |
12 |
} |
13 |
else if (enemy_attack == "Dunebud Sandcastle" && (!instance_exists(obj_battle_enemy_attack_dunebud_sandcastle_bucket)) && (!instance_exists(obj_battle_enemy_attack_dunebud_sandcastle_sandcastle))) |
14 |
{ |
15 |
var script_tgt = obj_dialogue_box_battle_transformation_any |
16 |
scr_create_attack_boundaryscr_create_attack_boundaryfunction scr_create_attack_boundary(argument0, argument1, argument2, argument3, argument4, argument5) //gml_Script_scr_create_attack_boundary
{
instance_create(0, 0, obj_attack_boundary_creator)
obj_attack_boundary_creator.create_x = argument0
obj_attack_boundary_creator.create_y = argument1
obj_attack_boundary_creator.width = argument2
obj_attack_boundary_creator.height = argument3
obj_attack_boundary_creator.thickness = argument4
obj_attack_boundary_creator.unique_id = argument5
with (obj_attack_boundary_creator)
event_user(0)
} ((script_tgt.bbox_left + 5), (script_tgt.bbox_top + 5), (script_tgt.sprite_width - 10), (script_tgt.sprite_height - 10), 20, 0) |
17 |
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), (obj_dialogue_box_battle_transformation_any.bbox_top - 20), obj_battle_enemy_attack_dunebud_sandcastle_bucket) |
18 |
} |
19 |
else if (enemy_attack == "Dunebud Tumbleweeds" && (!instance_exists(obj_battle_enemy_attack_dunebud_tumbleweeds_creator))) |
20 |
instance_create(0, 0, obj_battle_enemy_attack_dunebud_tumbleweeds_creator) |
21 |
} |
22 |
} |