1 |
if (action[message_current] != "Override") |
2 |
{ |
3 |
script_execute(scr_controls_text); |
4 |
if (key_revert_pressed) |
5 |
{ |
6 |
characters = message_length; |
7 |
message_draw = string_copy(message[message_current], 0, characters); |
8 |
} |
9 |
if (characters < message_length) |
10 |
{ |
11 |
if (counter == 0) |
12 |
{ |
13 |
script_execute(scr_text_increase); |
14 |
script_execute(talk_script[message_current]); |
15 |
} |
16 |
else |
17 |
{ |
18 |
can_talk = false; |
19 |
} |
20 |
} |
21 |
else |
22 |
{ |
23 |
can_talk = false; |
24 |
if (key_select_pressed) |
25 |
{ |
26 |
if (message_current < message_end) |
27 |
{ |
28 |
message_current += 1; |
29 |
message_length = string_length(message[message_current]); |
30 |
characters = 0; |
31 |
message_draw = ""; |
32 |
} |
33 |
else |
34 |
{ |
35 |
var shop_name = global.shop_name; |
36 |
if (shop_name == "Honeydew Resort Geno") |
37 |
{ |
38 |
if (global.snowdin_flag[19] == 0) |
39 |
global.snowdin_flag[19] = 1; |
40 |
} |
41 |
if (shop_name == "Wild East Gunshop Geno") |
42 |
{ |
43 |
if (global.dunes_flag[37] == 0) |
44 |
global.dunes_flag[37] = 1; |
45 |
} |
46 |
if (shop_name == "Wild East Saloon Geno") |
47 |
{ |
48 |
if (global.dunes_flag[38] == 0) |
49 |
global.dunes_flag[38] = 1; |
50 |
} |
51 |
instance_create(0, 0, obj_dialogue_main_screen_shop_geno); |
52 |
instance_create(0, 0, obj_text_main_screen_shop_geno); |
53 |
instance_create(obj_main_screen_shop.x + 229, obj_main_screen_shop.y + 19, obj_heart_main_screen_shop_geno); |
54 |
with (obj_talk_screen_shop) |
55 |
instance_destroy(); |
56 |
instance_destroy(); |
57 |
exit; |
58 |
} |
59 |
} |
60 |
} |
61 |
script_execute(scr_text_counter); |
62 |
} |