| 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 = full_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 |
var puppet_talking = false; |
| 25 |
if (obj_hotel_shop_puppet.sprite_index == spr_hotel_shop_puppet_talk && obj_hotel_shop_puppet.image_speed > 0) |
| 26 |
puppet_talking = true; |
| 27 |
if (sprite_index != obj_dialogue_shop_parent.portrait[obj_dialogue_shop_parent.message_current] && !puppet_talking) |
| 28 |
sprite_index = obj_dialogue_shop_parent.portrait[obj_dialogue_shop_parent.message_current]; |
| 29 |
} |
| 30 |
else |
| 31 |
{ |
| 32 |
sprite_index = full_sprite; |
| 33 |
} |
| 34 |
if (instance_exists(obj_dialogue_shop_parent) && obj_dialogue_shop_parent.point[obj_dialogue_shop_parent.message_current] == 1) |
| 35 |
{ |
| 36 |
if (obj_dialogue_shop_parent.can_talk == true) |
| 37 |
{ |
| 38 |
if (can_talk_no_loop == false) |
| 39 |
{ |
| 40 |
image_index = 1; |
| 41 |
can_talk_no_loop = true; |
| 42 |
} |
| 43 |
image_speed = global.text_speed * global.talk_speed_honeydew_bear * obj_dialogue_shop_parent.hold; |
| 44 |
} |
| 45 |
else |
| 46 |
{ |
| 47 |
can_talk_no_loop = false; |
| 48 |
image_speed = 0; |
| 49 |
image_index = 0; |
| 50 |
} |
| 51 |
} |
| 52 |
else |
| 53 |
{ |
| 54 |
can_talk_no_loop = false; |
| 55 |
image_speed = 0; |
| 56 |
image_index = 0; |
| 57 |
} |
| 58 |
} |