1 |
var enemy_dead = global.enemy_dead |
2 |
var enemy_spared = global.enemy_spared |
3 |
if (enemy_dead == false && enemy_spared == false) |
4 |
{ |
5 |
if (id_martlet_wing_gust != -4) |
6 |
{ |
7 |
image_alpha = 0 |
8 |
time_elapsed = 0 |
9 |
sign_modifier = 1 |
10 |
} |
11 |
else if instance_exists(obj_quote_battle_martlet_pacifist_during_attack_parent) |
12 |
{ |
13 |
during_dialogue = true |
14 |
if (global.image_alpha_enemy_attacking_immunity == true) |
15 |
image_alpha = 1 |
16 |
if (image_alpha < 1) |
17 |
{ |
18 |
image_alpha += 0.05 |
19 |
if (image_alpha >= 1) |
20 |
image_alpha = 1 |
21 |
} |
22 |
image_alpha_temp = image_alpha |
23 |
} |
24 |
else if (during_dialogue == true) |
25 |
{ |
26 |
image_alpha = image_alpha_temp + global.image_alpha_enemy_attacking * (1 - image_alpha_temp) |
27 |
if (global.image_alpha_enemy_attacking == 1) |
28 |
during_dialogue = false |
29 |
} |
30 |
else |
31 |
image_alpha = global.image_alpha_enemy_attacking |
32 |
} |