| 1 |
depth = -room_height - 164; |
| 2 |
var game_mode = global.game_mode; |
| 3 |
var shop_name = global.shop_name; |
| 4 |
var sell_count = global.sell_count; |
| 5 |
if (game_mode == "customs") |
| 6 |
{ |
| 7 |
if (shop_name == "Mart-2-Go") |
| 8 |
{ |
| 9 |
if (sell_count == 0) |
| 10 |
{ |
| 11 |
message[0] = "* Give me a break, buddy!#* You honestly think I'm gonna buy# your rotton food and twigs you# found off of the ground?!"; |
| 12 |
message[1] = "* What do I look like?#* A conventional NPC who will just# buy any random junk you come# across?"; |
| 13 |
message[2] = "* You gotta give me more credit# than that!#* You'll have better luck looking# elsewhere."; |
| 14 |
portrait_author_head[0] = spr_author_head_normal_new_shop; |
| 15 |
portrait_author_torso[0] = spr_author_torso_normal_new_shop; |
| 16 |
portrait_author_head[1] = spr_author_head_normal_new_shop; |
| 17 |
portrait_author_torso[1] = spr_author_torso_normal_new_shop; |
| 18 |
portrait_author_head[2] = spr_author_head_normal_new_shop; |
| 19 |
portrait_author_torso[2] = spr_author_torso_normal_new_shop; |
| 20 |
point[0] = 1; |
| 21 |
point[1] = 1; |
| 22 |
point[2] = 1; |
| 23 |
talk_script[0] = scr_talking_author; |
| 24 |
talk_script[1] = scr_talking_author; |
| 25 |
talk_script[2] = scr_talking_author; |
| 26 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 27 |
action[i] = "Nothing"; |
| 28 |
message_end = 2; |
| 29 |
} |
| 30 |
else if (sell_count == 1) |
| 31 |
{ |
| 32 |
message[0] = "* Look, if you are in need of some# money, why not build a fangame,# set up a Gamejolt or itch.io# page, and hope for donations?"; |
| 33 |
message[1] = "* I wonder if it's even legal to# accept donations from fangames..."; |
| 34 |
portrait_author_head[0] = spr_author_head_normal_new_shop; |
| 35 |
portrait_author_torso[0] = spr_author_torso_normal_new_shop; |
| 36 |
portrait_author_head[1] = spr_author_head_normal_new_shop; |
| 37 |
portrait_author_torso[1] = spr_author_torso_normal_new_shop; |
| 38 |
point[0] = 1; |
| 39 |
point[1] = 1; |
| 40 |
talk_script[0] = scr_talking_author; |
| 41 |
talk_script[1] = scr_talking_author; |
| 42 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 43 |
action[i] = "Nothing"; |
| 44 |
message_end = 1; |
| 45 |
} |
| 46 |
} |
| 47 |
} |
| 48 |
else if (game_mode == "yellow") |
| 49 |
{ |
| 50 |
if (shop_name == "Honeydew Resort Normal") |
| 51 |
{ |
| 52 |
if (sell_count == 0) |
| 53 |
{ |
| 54 |
message[0] = "* I appreciate the offer, but..."; |
| 55 |
message[1] = "* My dad would ground me if I# bought items off strangers."; |
| 56 |
message[2] = "* That's what he always told me."; |
| 57 |
message[3] = "* \"Don't buy items off strangers.\""; |
| 58 |
message[4] = "* Heh heh... heh..."; |
| 59 |
portrait[0] = 1406; |
| 60 |
portrait[1] = 1407; |
| 61 |
portrait[2] = 1402; |
| 62 |
portrait[3] = 1401; |
| 63 |
portrait[4] = 1404; |
| 64 |
point[0] = 1; |
| 65 |
point[1] = 1; |
| 66 |
point[2] = 1; |
| 67 |
point[3] = 1; |
| 68 |
point[4] = 1; |
| 69 |
talk_script[0] = scr_talking_honeydew_bear; |
| 70 |
talk_script[1] = scr_talking_honeydew_bear; |
| 71 |
talk_script[2] = scr_talking_honeydew_bear; |
| 72 |
talk_script[3] = scr_talking_honeydew_bear; |
| 73 |
talk_script[4] = scr_talking_honeydew_bear; |
| 74 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 75 |
action[i] = "Nothing"; |
| 76 |
action[2] = "Override"; |
| 77 |
action_follow_up[2] = "Nothing"; |
| 78 |
action_script[2] = scr_shop_animation_override_honeydew_bear_hand_deux; |
| 79 |
message_end = 4; |
| 80 |
} |
| 81 |
else if (sell_count == 1) |
| 82 |
{ |
| 83 |
message[0] = "* I already declined..."; |
| 84 |
message[1] = "* Was... was I not nice enough?"; |
| 85 |
message[2] = "* Over a year of working here and# I still screw everything up."; |
| 86 |
portrait[0] = 1408; |
| 87 |
portrait[1] = 1407; |
| 88 |
portrait[2] = 1403; |
| 89 |
point[0] = 1; |
| 90 |
point[1] = 1; |
| 91 |
point[2] = 1; |
| 92 |
talk_script[0] = scr_talking_honeydew_bear; |
| 93 |
talk_script[1] = scr_talking_honeydew_bear; |
| 94 |
talk_script[2] = scr_talking_honeydew_bear; |
| 95 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 96 |
action[i] = "Nothing"; |
| 97 |
action[2] = "Override"; |
| 98 |
action_follow_up[2] = "Nothing"; |
| 99 |
action_script[2] = scr_shop_animation_override_honeydew_bear_head_down; |
| 100 |
message_end = 2; |
| 101 |
} |
| 102 |
} |
| 103 |
else if (shop_name == "Wild East Saloon") |
| 104 |
{ |
| 105 |
if (sell_count == 0) |
| 106 |
{ |
| 107 |
message[0] = "* This is a bar, not a marketplace."; |
| 108 |
message[1] = "* Try Blackjack down the road# if you wanna barter."; |
| 109 |
portrait[0] = 1427; |
| 110 |
portrait[1] = 1423; |
| 111 |
point[0] = 1; |
| 112 |
point[1] = 1; |
| 113 |
talk_script[0] = scr_talking_dina; |
| 114 |
talk_script[1] = scr_talking_dina; |
| 115 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 116 |
action[i] = "Nothing"; |
| 117 |
message_end = 1; |
| 118 |
} |
| 119 |
else if (sell_count == 1) |
| 120 |
{ |
| 121 |
message[0] = "* I already told ya to ask# Blackjack about sellin'."; |
| 122 |
portrait[0] = 1427; |
| 123 |
point[0] = 1; |
| 124 |
talk_script[0] = scr_talking_dina; |
| 125 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 126 |
action[i] = "Nothing"; |
| 127 |
message_end = 0; |
| 128 |
} |
| 129 |
} |
| 130 |
else if (shop_name == "Steamworks Vendy") |
| 131 |
{ |
| 132 |
if (global.sworks_flag[26] < 2) |
| 133 |
{ |
| 134 |
message[0] = "* Oh yes! I will gladly dispense# your garbage! Hand it over!"; |
| 135 |
message[1] = "* Please stop."; |
| 136 |
portrait[0] = 131; |
| 137 |
portrait[1] = 863; |
| 138 |
point[0] = 1; |
| 139 |
point[1] = 1; |
| 140 |
talk_script[0] = scr_talking_vendy; |
| 141 |
talk_script[1] = scr_talking_vendy; |
| 142 |
} |
| 143 |
else |
| 144 |
{ |
| 145 |
message[0] = "* Unfortunately, I cannot# receive any of your items, only# dispense my own."; |
| 146 |
message[1] = "* I am terribly sorry!"; |
| 147 |
portrait[0] = 863; |
| 148 |
portrait[1] = 2663; |
| 149 |
point[0] = 1; |
| 150 |
point[1] = 1; |
| 151 |
talk_script[0] = scr_talking_vendy; |
| 152 |
talk_script[1] = scr_talking_vendy; |
| 153 |
} |
| 154 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 155 |
action[i] = "Nothing"; |
| 156 |
message_end = 1; |
| 157 |
} |
| 158 |
else if (shop_name == "Hotel Shop") |
| 159 |
{ |
| 160 |
message[0] = "* Sell an item to us? Buttons,# what do you think?#\t"; |
| 161 |
message_alt[0] = "* Sell an item to us? Buttons,# what do you think? #* < No deal! No can do! Not in a# hundred years! >#"; |
| 162 |
message[1] = "* Hmm, hundred and one?"; |
| 163 |
message_alt[1] = "* Hmm, hundred and one? #* < By that time you'll be dead# and I'll be runnin' the shop by# myself! >#"; |
| 164 |
message[2] = "* Hey that's pretty dark,# Buttons!#"; |
| 165 |
message_alt[2] = "* Hey that's pretty dark,# Buttons! #* < We live in a frickin' cave,# it's always dark! >"; |
| 166 |
message[3] = "* Hahahaha!"; |
| 167 |
message_alt[3] = "#* < Heheheheh! >"; |
| 168 |
portrait[0] = 3301; |
| 169 |
portrait[1] = 1492; |
| 170 |
portrait[2] = 3301; |
| 171 |
portrait[3] = 3199; |
| 172 |
portrait_alt[0] = 1959; |
| 173 |
portrait_alt[1] = 1959; |
| 174 |
portrait_alt[2] = 1959; |
| 175 |
portrait_alt[3] = 1959; |
| 176 |
obj_hotel_shop_puppet.shopkeeper_sprite[3] = 3199; |
| 177 |
point[0] = 1; |
| 178 |
point[1] = 1; |
| 179 |
point[2] = 1; |
| 180 |
point[3] = 1; |
| 181 |
talk_script[0] = scr_talking_vendy; |
| 182 |
talk_script[1] = scr_talking_vendy; |
| 183 |
talk_script[2] = scr_talking_vendy; |
| 184 |
talk_script[3] = scr_talking_vendy; |
| 185 |
for (i = 0; i < array_length_1d(message); i += 1) |
| 186 |
action[i] = "Nothing"; |
| 187 |
message_end = 3; |
| 188 |
} |
| 189 |
} |
| 190 |
message_current = 0; |
| 191 |
message_draw = ""; |
| 192 |
increase = global.text_speed; |
| 193 |
characters = 0; |
| 194 |
hold = 0; |
| 195 |
message_length = string_length(message[message_current]); |
| 196 |
message_draw_alt = ""; |
| 197 |
if (shop_name == "Hotel Shop") |
| 198 |
{ |
| 199 |
var message_alt_length = string_length(message_alt[message_current]); |
| 200 |
if (message_alt_length > message_length) |
| 201 |
message_length = message_alt_length; |
| 202 |
} |
| 203 |
script_execute(scr_generate_text_counters); |