| 1 |
var action; |
| 2 |
if (instance_exists(obj_dialogue_shop_parent)) |
| 3 |
action = obj_dialogue_shop_parent.action[obj_dialogue_shop_parent.message_current]; |
| 4 |
else |
| 5 |
action = "Nothing"; |
| 6 |
if (action != "Nothing") |
| 7 |
{ |
| 8 |
if (instance_exists(obj_dialogue_shop_parent) && obj_dialogue_shop_parent.point[obj_dialogue_shop_parent.message_current] == 1) |
| 9 |
{ |
| 10 |
script_execute(obj_dialogue_shop_parent.action_script[obj_dialogue_shop_parent.message_current]); |
| 11 |
} |
| 12 |
else |
| 13 |
{ |
| 14 |
can_talk_no_loop = false; |
| 15 |
sprite_index = torso_sprite; |
| 16 |
image_speed = 0; |
| 17 |
image_index = 0; |
| 18 |
} |
| 19 |
} |
| 20 |
if (action != "Override") |
| 21 |
{ |
| 22 |
if (instance_exists(obj_dialogue_shop_parent)) |
| 23 |
{ |
| 24 |
if (sprite_index != obj_dialogue_shop_parent.portrait_author_torso[obj_dialogue_shop_parent.message_current]) |
| 25 |
sprite_index = obj_dialogue_shop_parent.portrait_author_torso[obj_dialogue_shop_parent.message_current]; |
| 26 |
} |
| 27 |
else |
| 28 |
{ |
| 29 |
sprite_index = torso_sprite; |
| 30 |
} |
| 31 |
if (instance_exists(obj_dialogue_shop_parent) && obj_dialogue_shop_parent.point[obj_dialogue_shop_parent.message_current] == 1) |
| 32 |
{ |
| 33 |
if (obj_dialogue_shop_parent.can_talk == true) |
| 34 |
{ |
| 35 |
if (can_talk_no_loop == false) |
| 36 |
{ |
| 37 |
image_index = 1; |
| 38 |
can_talk_no_loop = true; |
| 39 |
} |
| 40 |
image_speed = global.text_speed * global.talk_speed_author * obj_dialogue_shop_parent.hold; |
| 41 |
} |
| 42 |
else |
| 43 |
{ |
| 44 |
can_talk_no_loop = false; |
| 45 |
image_speed = 0; |
| 46 |
image_index = 0; |
| 47 |
} |
| 48 |
} |
| 49 |
else |
| 50 |
{ |
| 51 |
can_talk_no_loop = false; |
| 52 |
image_speed = 0; |
| 53 |
image_index = 0; |
| 54 |
} |
| 55 |
} |
| 56 |
x = default_x + disjoint_x; |
| 57 |
y = default_y + disjoint_y; |
| 58 |
with (obj_author_head_shop) |
| 59 |
event_user(0); |