1 |
if instance_exists(obj_dialogue_shop_parent) |
2 |
var action = obj_dialogue_shop_parent.action[obj_dialogue_shop_parent.message_current] |
3 |
else |
4 |
action = "Nothing" |
5 |
if (action != "Nothing") |
6 |
{ |
7 |
if (instance_exists(obj_dialogue_shop_parent) && obj_dialogue_shop_parent.point[obj_dialogue_shop_parent.message_current] == 1) |
8 |
script_execute(obj_dialogue_shop_parent.action_script[obj_dialogue_shop_parent.message_current]) |
9 |
else |
10 |
{ |
11 |
can_talk_no_loop = false |
12 |
sprite_index = full_sprite |
13 |
image_speed = 0 |
14 |
image_index = 0 |
15 |
} |
16 |
} |
17 |
if (action != "Override") |
18 |
{ |
19 |
if instance_exists(obj_dialogue_shop_parent) |
20 |
{ |
21 |
var puppet_talking = false |
22 |
if (obj_hotel_shop_puppet.sprite_index == spr_hotel_shop_puppet_talk && obj_hotel_shop_puppet.image_speed > 0) |
23 |
puppet_talking = true |
24 |
if (sprite_index != obj_dialogue_shop_parent.portrait[obj_dialogue_shop_parent.message_current] && (!puppet_talking)) |
25 |
sprite_index = obj_dialogue_shop_parent.portrait[obj_dialogue_shop_parent.message_current] |
26 |
} |
27 |
else |
28 |
sprite_index = full_sprite |
29 |
if (instance_exists(obj_dialogue_shop_parent) && obj_dialogue_shop_parent.point[obj_dialogue_shop_parent.message_current] == 1) |
30 |
{ |
31 |
if (obj_dialogue_shop_parent.can_talk == true) |
32 |
{ |
33 |
if (can_talk_no_loop == false) |
34 |
{ |
35 |
image_index = 1 |
36 |
can_talk_no_loop = true |
37 |
} |
38 |
image_speed = global.text_speed * global.talk_speed_honeydew_bear * obj_dialogue_shop_parent.hold |
39 |
} |
40 |
else |
41 |
{ |
42 |
can_talk_no_loop = false |
43 |
image_speed = 0 |
44 |
image_index = 0 |
45 |
} |
46 |
} |
47 |
else |
48 |
{ |
49 |
can_talk_no_loop = false |
50 |
image_speed = 0 |
51 |
image_index = 0 |
52 |
} |
53 |
} |