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 = head_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 |
if (sprite_index != obj_dialogue_shop_parent.portrait_author_head[obj_dialogue_shop_parent.message_current]) |
22 |
sprite_index = obj_dialogue_shop_parent.portrait_author_head[obj_dialogue_shop_parent.message_current] |
23 |
} |
24 |
else |
25 |
sprite_index = head_sprite |
26 |
if (instance_exists(obj_dialogue_shop_parent) && obj_dialogue_shop_parent.point[obj_dialogue_shop_parent.message_current] == 1) |
27 |
{ |
28 |
if (obj_dialogue_shop_parent.can_talk == true) |
29 |
{ |
30 |
if (can_talk_no_loop == false) |
31 |
{ |
32 |
image_index = 1 |
33 |
can_talk_no_loop = true |
34 |
} |
35 |
image_speed = global.text_speed * global.talk_speed_author * obj_dialogue_shop_parent.hold |
36 |
} |
37 |
else |
38 |
{ |
39 |
can_talk_no_loop = false |
40 |
image_speed = 0 |
41 |
image_index = 0 |
42 |
} |
43 |
} |
44 |
else |
45 |
{ |
46 |
can_talk_no_loop = false |
47 |
image_speed = 0 |
48 |
image_index = 0 |
49 |
} |
50 |
} |