1 |
if (action[message_current] != "Override") |
2 |
{ |
3 |
script_execute(gml_Script_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(gml_Script_scr_text_increase) |
14 |
script_execute(talk_script[message_current]) |
15 |
} |
16 |
else |
17 |
can_talk = false |
18 |
} |
19 |
else |
20 |
{ |
21 |
can_talk = false |
22 |
if key_select_pressed |
23 |
{ |
24 |
if (message_current < message_end) |
25 |
{ |
26 |
message_current += 1 |
27 |
message_length = string_length(message[message_current]) |
28 |
characters = 0 |
29 |
message_draw = "" |
30 |
} |
31 |
else |
32 |
{ |
33 |
var shop_name = global.shop_name |
34 |
if (shop_name == "Honeydew Resort Geno") |
35 |
{ |
36 |
if (global.snowdin_flag[19] == 0) |
37 |
global.snowdin_flag[19] = 1 |
38 |
} |
39 |
if (shop_name == "Wild East Gunshop Geno") |
40 |
{ |
41 |
if (global.dunes_flag[37] == 0) |
42 |
global.dunes_flag[37] = 1 |
43 |
} |
44 |
if (shop_name == "Wild East Saloon Geno") |
45 |
{ |
46 |
if (global.dunes_flag[38] == 0) |
47 |
global.dunes_flag[38] = 1 |
48 |
} |
49 |
instance_create(0, 0, obj_dialogue_main_screen_shop_geno) |
50 |
instance_create(0, 0, obj_text_main_screen_shop_geno) |
51 |
instance_create((obj_main_screen_shop.x + 229), (obj_main_screen_shop.y + 19), obj_heart_main_screen_shop_geno) |
52 |
with (obj_talk_screen_shop) |
53 |
instance_destroy() |
54 |
instance_destroy() |
55 |
} |
56 |
} |
57 |
} |
58 |
script_execute(gml_Script_scr_text_counter) |
59 |
} |