| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
if (!instance_exists(obj_dalv_body)) |
| 4 |
{ |
| 5 |
instance_destroy(); |
| 6 |
exit; |
| 7 |
} |
| 8 |
if (obj_dalv_body.animating == true) |
| 9 |
{ |
| 10 |
x = obj_dalv_body.x + 2; |
| 11 |
y = obj_dalv_body.head_displacement_y; |
| 12 |
} |
| 13 |
else |
| 14 |
{ |
| 15 |
x = starting_point_x; |
| 16 |
y = starting_point_y; |
| 17 |
} |
| 18 |
var text_parent; |
| 19 |
if (instance_exists(obj_quote_defeat_parent)) |
| 20 |
text_parent = 2961; |
| 21 |
else |
| 22 |
text_parent = 2460; |
| 23 |
if (instance_exists(text_parent) && instance_exists(obj_quote_bubble_battle)) |
| 24 |
{ |
| 25 |
if (sprite_index != text_parent.portrait[text_parent.message_current]) |
| 26 |
sprite_index = text_parent.portrait[text_parent.message_current]; |
| 27 |
} |
| 28 |
else |
| 29 |
{ |
| 30 |
sprite_index = head_sprite; |
| 31 |
} |
| 32 |
if (instance_exists(text_parent) && instance_exists(obj_quote_bubble_battle)) |
| 33 |
{ |
| 34 |
if (text_parent.can_talk == true) |
| 35 |
{ |
| 36 |
if (can_talk_no_loop == false) |
| 37 |
{ |
| 38 |
image_index = 1; |
| 39 |
can_talk_no_loop = true; |
| 40 |
} |
| 41 |
image_speed = global.text_speed * global.talk_speed_dalv * text_parent.hold; |
| 42 |
} |
| 43 |
else |
| 44 |
{ |
| 45 |
can_talk_no_loop = false; |
| 46 |
image_speed = 0; |
| 47 |
image_index = 0; |
| 48 |
} |
| 49 |
} |
| 50 |
else |
| 51 |
{ |
| 52 |
can_talk_no_loop = false; |
| 53 |
image_speed = 0; |
| 54 |
image_index = 0; |
| 55 |
} |
| 56 |
with (obj_dalv_head_shadow) |
| 57 |
event_user(0); |