| 1 |
depth = -room_height - 164; |
| 2 |
var game_mode = global.game_mode; |
| 3 |
var shop_name = global.shop_name; |
| 4 |
var buy_shop_screen_number = global.buy_shop_screen_number; |
| 5 |
if (shop_name == "Honeydew Resort Geno") |
| 6 |
{ |
| 7 |
if (global.snowdin_flag[19] == 0) |
| 8 |
{ |
| 9 |
message[0] = "* (You took 60G from# the shelf.)"; |
| 10 |
point[0] = 1; |
| 11 |
talk_script[0] = scr_talking_normal; |
| 12 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 13 |
{ |
| 14 |
action[i] = "Nothing"; |
| 15 |
global.snowdin_flag[19] = 1; |
| 16 |
} |
| 17 |
message_end = 0; |
| 18 |
global.player_gold += 60; |
| 19 |
} |
| 20 |
else if (global.snowdin_flag[19] == 1) |
| 21 |
{ |
| 22 |
message[0] = "* (There's nothing# left.)"; |
| 23 |
point[0] = 1; |
| 24 |
talk_script[0] = scr_talking_normal; |
| 25 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 26 |
action[i] = "Nothing"; |
| 27 |
message_end = 0; |
| 28 |
} |
| 29 |
} |
| 30 |
if (shop_name == "Cafe Dune Geno") |
| 31 |
{ |
| 32 |
if (global.dunes_flag[49] == 0) |
| 33 |
{ |
| 34 |
message[0] = "* (You took 80G from# the shelf.)"; |
| 35 |
point[0] = 1; |
| 36 |
talk_script[0] = scr_talking_normal; |
| 37 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 38 |
action[i] = "Nothing"; |
| 39 |
message_end = 0; |
| 40 |
global.player_gold += 80; |
| 41 |
global.dunes_flag[49] = 1; |
| 42 |
} |
| 43 |
else if (global.dunes_flag[49] == 1) |
| 44 |
{ |
| 45 |
message[0] = "* (There's nothing# left.)"; |
| 46 |
point[0] = 1; |
| 47 |
talk_script[0] = scr_talking_normal; |
| 48 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 49 |
action[i] = "Nothing"; |
| 50 |
message_end = 0; |
| 51 |
} |
| 52 |
} |
| 53 |
if (shop_name == "Wild East Gunshop Geno") |
| 54 |
{ |
| 55 |
if (global.dunes_flag[37] == 0) |
| 56 |
{ |
| 57 |
message[0] = "* (There's a safe with# the door left open.)"; |
| 58 |
message[1] = "* (It's empty.)"; |
| 59 |
point[0] = 1; |
| 60 |
point[1] = 1; |
| 61 |
talk_script[0] = scr_talking_normal; |
| 62 |
talk_script[1] = scr_talking_normal; |
| 63 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 64 |
action[i] = "Nothing"; |
| 65 |
message_end = 1; |
| 66 |
} |
| 67 |
else if (global.dunes_flag[37] == 1) |
| 68 |
{ |
| 69 |
message[0] = "* Nothing to take."; |
| 70 |
point[0] = 1; |
| 71 |
talk_script[0] = scr_talking_normal; |
| 72 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 73 |
action[i] = "Nothing"; |
| 74 |
message_end = 0; |
| 75 |
} |
| 76 |
} |
| 77 |
if (shop_name == "Wild East Saloon Geno") |
| 78 |
{ |
| 79 |
if (global.dunes_flag[38] == 0) |
| 80 |
{ |
| 81 |
message[0] = "* (You took 100G# from behind the# bar.)"; |
| 82 |
point[0] = 1; |
| 83 |
talk_script[0] = scr_talking_normal; |
| 84 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 85 |
action[i] = "Nothing"; |
| 86 |
global.player_gold += 100; |
| 87 |
message_end = 0; |
| 88 |
} |
| 89 |
else if (global.dunes_flag[38] == 1) |
| 90 |
{ |
| 91 |
message[0] = "* (There's no G# left to take.)"; |
| 92 |
point[0] = 1; |
| 93 |
talk_script[0] = scr_talking_normal; |
| 94 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 95 |
action[i] = "Nothing"; |
| 96 |
message_end = 0; |
| 97 |
} |
| 98 |
} |
| 99 |
if (shop_name == "Hotel Shop Geno") |
| 100 |
{ |
| 101 |
if (global.hotland_flag[11] == 0) |
| 102 |
{ |
| 103 |
message[0] = "* (You took 500G# from the register.)"; |
| 104 |
point[0] = 1; |
| 105 |
talk_script[0] = scr_talking_normal; |
| 106 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 107 |
action[i] = "Nothing"; |
| 108 |
global.player_gold += 500; |
| 109 |
message_end = 0; |
| 110 |
global.hotland_flag[11] = 1; |
| 111 |
} |
| 112 |
else if (global.hotland_flag[11] == 1) |
| 113 |
{ |
| 114 |
message[0] = "* (There's nothing# left.)"; |
| 115 |
point[0] = 1; |
| 116 |
talk_script[0] = scr_talking_normal; |
| 117 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 118 |
action[i] = "Nothing"; |
| 119 |
message_end = 0; |
| 120 |
} |
| 121 |
} |
| 122 |
message_current = 0; |
| 123 |
message_draw = ""; |
| 124 |
increase = global.text_speed; |
| 125 |
characters = 0; |
| 126 |
hold = 0; |
| 127 |
message_length = string_length(message[message_current]); |
| 128 |
script_execute(scr_generate_text_counters); |