| 1 |
if (transformed == true) |
| 2 |
{ |
| 3 |
if (sprite_index != spr_crispy_scroll_spared) |
| 4 |
sprite_index = spr_crispy_scroll_spared; |
| 5 |
x += transformed_speed; |
| 6 |
image_angle += transformed_rotation_speed; |
| 7 |
if (x <= (0 - (sprite_width / 2))) |
| 8 |
{ |
| 9 |
global.enemy_sparing = true; |
| 10 |
if (global.enemy_count == 1) |
| 11 |
{ |
| 12 |
instance_create(0, 0, obj_dialogue_battle_win_enemy); |
| 13 |
} |
| 14 |
else if (global.enemy_count == 2 && (global.enemy_dead_2 + global.enemy_spared_2) >= 1) |
| 15 |
{ |
| 16 |
instance_create(0, 0, obj_dialogue_battle_win_enemy); |
| 17 |
} |
| 18 |
else if (global.enemy_count == 3 && (global.enemy_dead_2 + global.enemy_spared_2 + global.enemy_dead_3 + global.enemy_spared_3) >= 2) |
| 19 |
{ |
| 20 |
instance_create(0, 0, obj_dialogue_battle_win_enemy); |
| 21 |
} |
| 22 |
else |
| 23 |
{ |
| 24 |
global.important_cutscene = script_execute(scr_determine_important_cutscene_attacking); |
| 25 |
global.can_attack = script_execute(scr_determine_can_attack_attacking); |
| 26 |
if (global.important_cutscene == false && global.can_attack == true) |
| 27 |
global.enemy_attacking = true; |
| 28 |
if (global.can_attack == false) |
| 29 |
{ |
| 30 |
with (obj_dialogue_box_battle) |
| 31 |
no_loop_can_attack = false; |
| 32 |
} |
| 33 |
} |
| 34 |
global.enemy_spared = true; |
| 35 |
instance_destroy(); |
| 36 |
} |
| 37 |
} |