1 |
if (!instance_exists(obj_starlo_boss_body)) |
2 |
{ |
3 |
instance_destroy(); |
4 |
exit; |
5 |
} |
6 |
if (obj_starlo_boss_body.damage_disjoint_x != 0) |
7 |
{ |
8 |
sprite_index = hurt_sprite; |
9 |
exit; |
10 |
} |
11 |
var text_parent; |
12 |
if (instance_exists(obj_quote_defeat_parent)) |
13 |
text_parent = 2961; |
14 |
else |
15 |
text_parent = 2782; |
16 |
if (instance_exists(text_parent) && instance_exists(obj_quote_bubble_battle)) |
17 |
{ |
18 |
if (sprite_index != text_parent.portrait_head[text_parent.message_current]) |
19 |
sprite_index = text_parent.portrait_head[text_parent.message_current]; |
20 |
} |
21 |
else |
22 |
{ |
23 |
sprite_index = head_sprite; |
24 |
} |
25 |
if (instance_exists(text_parent) && instance_exists(obj_quote_bubble_battle)) |
26 |
{ |
27 |
if (text_parent.can_talk == true) |
28 |
{ |
29 |
if (can_talk_no_loop == false) |
30 |
{ |
31 |
image_index = 1; |
32 |
can_talk_no_loop = true; |
33 |
} |
34 |
image_speed = global.text_speed * global.talk_speed_martlet * text_parent.hold; |
35 |
} |
36 |
else |
37 |
{ |
38 |
can_talk_no_loop = false; |
39 |
image_speed = 0; |
40 |
image_index = 0; |
41 |
} |
42 |
} |
43 |
else |
44 |
{ |
45 |
can_talk_no_loop = false; |
46 |
image_speed = 0; |
47 |
image_index = 0; |
48 |
} |