1 |
if (global.draw_scanlines == true) |
2 |
instance_create(__view_get((0 << 0), 0), __view_get((1 << 0), 0), obj_scanlines) |
3 |
global.main_shop_screen_number = 1 |
4 |
global.buy_shop_screen_number = 1 |
5 |
global.sell_shop_screen_number = 1 |
6 |
global.player_response = 0 |
7 |
global.able_to_buy = 0 |
8 |
global.sell_count = 0 |
9 |
global.text_linebreak_limit_shop = 999 |
10 |
global.text_separation_shop = 18 |
11 |
var shop_name = global.shop_name |
12 |
var shop_geno = false |
13 |
if (shop_name == "Honeydew Resort Normal") |
14 |
{ |
15 |
global.shop_item[1] = "Hndw Coffee" |
16 |
global.shop_item[2] = "Hndw Pancake" |
17 |
global.shop_item[3] = "G.B. Bear" |
18 |
global.shop_item[4] = "Honeydew Pin" |
19 |
global.shop_stock[1] = 0 |
20 |
global.shop_stock[2] = 1 |
21 |
global.shop_stock[3] = 2 |
22 |
global.shop_stock[4] = 3 |
23 |
global.shop_gold_requirement[1] = 16 |
24 |
global.shop_gold_requirement[2] = 18 |
25 |
global.shop_gold_requirement[3] = 22 |
26 |
global.shop_gold_requirement[4] = 30 |
27 |
if (global.snowdin_flag[13] == 0) |
28 |
{ |
29 |
global.shop_talk[1] = "This resort" |
30 |
global.shop_talk[2] = "How's business?" |
31 |
global.shop_talk[3] = "The band" |
32 |
global.shop_talk[4] = "Dalv" |
33 |
} |
34 |
else |
35 |
{ |
36 |
global.shop_talk[1] = "Royal Guard" |
37 |
global.shop_talk[2] = "Mo" |
38 |
global.shop_talk[3] = "Weather" |
39 |
global.shop_talk[4] = "Joke" |
40 |
} |
41 |
bg_index = 1 |
42 |
instance_create(160, 119, obj_honeydew_bear_shop) |
43 |
shop_audio = mus_shop |
44 |
} |
45 |
if (shop_name == "Cafe Dune Geno") |
46 |
{ |
47 |
global.shop_item[1] = "Icewater" |
48 |
global.shop_item[2] = "Oasis Latte" |
49 |
global.shop_item[3] = "Cnm. Cookie" |
50 |
global.shop_item[4] = "Floral Cupcake" |
51 |
global.shop_stock[1] = 20 |
52 |
global.shop_stock[2] = 21 |
53 |
global.shop_stock[3] = 22 |
54 |
global.shop_stock[4] = 23 |
55 |
global.shop_gold_requirement[1] = 0 |
56 |
global.shop_gold_requirement[2] = 0 |
57 |
global.shop_gold_requirement[3] = 0 |
58 |
global.shop_gold_requirement[4] = 0 |
59 |
bg_index = 6 |
60 |
shop_audio = mus_shop |
61 |
shop_geno = true |
62 |
} |
63 |
if (shop_name == "Honeydew Resort Geno") |
64 |
{ |
65 |
global.shop_item[1] = "Hndw Coffee" |
66 |
global.shop_item[2] = "Hndw Pancake" |
67 |
global.shop_item[3] = "G.B. Bear" |
68 |
global.shop_item[4] = "Honeydew Pin" |
69 |
global.shop_stock[1] = 0 |
70 |
global.shop_stock[2] = 1 |
71 |
global.shop_stock[3] = 2 |
72 |
global.shop_stock[4] = 3 |
73 |
global.shop_gold_requirement[1] = 0 |
74 |
global.shop_gold_requirement[2] = 0 |
75 |
global.shop_gold_requirement[3] = 0 |
76 |
global.shop_gold_requirement[4] = 0 |
77 |
bg_index = 1 |
78 |
shop_audio = mus_shop |
79 |
shop_geno = true |
80 |
} |
81 |
if (shop_name == "Wild East Gunshop") |
82 |
{ |
83 |
global.shop_item[1] = "Gunpowder" |
84 |
global.shop_item[2] = "Silver Ammo" |
85 |
global.shop_item[3] = "Fancy Holster" |
86 |
global.shop_item[4] = "Wild Revolver" |
87 |
global.shop_stock[1] = 4 |
88 |
global.shop_stock[2] = 5 |
89 |
global.shop_stock[3] = 6 |
90 |
global.shop_stock[4] = 7 |
91 |
global.shop_gold_requirement[1] = 40 |
92 |
global.shop_gold_requirement[2] = 80 |
93 |
global.shop_gold_requirement[3] = 50 |
94 |
global.shop_gold_requirement[4] = 200 |
95 |
global.shop_talk[1] = "The Feisty Five" |
96 |
global.shop_talk[2] = "Your Wares" |
97 |
global.shop_talk[3] = "Visitors" |
98 |
global.shop_talk[4] = "History" |
99 |
if (global.dunes_flag[24] != 0) |
100 |
{ |
101 |
global.shop_talk[1] = "Your Age" |
102 |
global.shop_talk[2] = "The Four" |
103 |
global.shop_talk[3] = "Humans" |
104 |
global.shop_talk[4] = "Smithing" |
105 |
} |
106 |
bg_index = 2 |
107 |
instance_create(0, 0, obj_wild_east_blackjack_shop) |
108 |
shop_audio = mus_gunshop |
109 |
} |
110 |
if (shop_name == "Wild East Gunshop Geno") |
111 |
{ |
112 |
global.shop_item[1] = "Gunpowder" |
113 |
global.shop_item[2] = "Silver Ammo" |
114 |
global.shop_item[3] = "Fancy Holster" |
115 |
global.shop_item[4] = "Wild Revolver" |
116 |
global.shop_stock[1] = 4 |
117 |
global.shop_stock[2] = 5 |
118 |
global.shop_stock[3] = 6 |
119 |
global.shop_stock[4] = 7 |
120 |
global.item_stock[7] = 0 |
121 |
global.shop_gold_requirement[1] = 0 |
122 |
global.shop_gold_requirement[2] = 0 |
123 |
global.shop_gold_requirement[3] = 0 |
124 |
global.shop_gold_requirement[4] = 0 |
125 |
bg_index = 2 |
126 |
shop_audio = mus_gunshop |
127 |
shop_geno = true |
128 |
} |
129 |
if (shop_name == "Wild East Saloon") |
130 |
{ |
131 |
global.shop_item[1] = "Icewater" |
132 |
global.shop_item[2] = "Adult Soda" |
133 |
global.shop_item[3] = "Root Beer" |
134 |
global.shop_item[4] = "Feisty Slider" |
135 |
global.shop_stock[1] = 8 |
136 |
global.shop_stock[2] = 9 |
137 |
global.shop_stock[3] = 10 |
138 |
global.shop_stock[4] = 11 |
139 |
global.shop_gold_requirement[1] = 18 |
140 |
global.shop_gold_requirement[2] = 20 |
141 |
global.shop_gold_requirement[3] = 22 |
142 |
global.shop_gold_requirement[4] = 30 |
143 |
global.shop_talk[1] = "This Town" |
144 |
global.shop_talk[2] = "Your snakes" |
145 |
global.shop_talk[3] = "Can I leave?" |
146 |
global.shop_talk[4] = "North Star" |
147 |
if (global.dunes_flag[24] != 0) |
148 |
{ |
149 |
global.shop_talk[1] = "Feisty Five" |
150 |
global.shop_talk[2] = "Kanako" |
151 |
global.shop_talk[3] = "Government" |
152 |
global.shop_talk[4] = "Chujin" |
153 |
} |
154 |
bg_index = 3 |
155 |
instance_create(156, 120, obj_wild_east_dina_body_shop) |
156 |
instance_create(128, 35, obj_wild_east_dina_shop) |
157 |
shop_audio = mus_gunshop |
158 |
} |
159 |
if (shop_name == "Wild East Saloon Geno") |
160 |
{ |
161 |
global.shop_item[1] = "Icewater" |
162 |
global.shop_item[2] = "Adult Soda" |
163 |
global.shop_item[3] = "Root Beer" |
164 |
global.shop_item[4] = "Feisty Slider" |
165 |
global.shop_stock[1] = 8 |
166 |
global.shop_stock[2] = 9 |
167 |
global.shop_stock[3] = 10 |
168 |
global.shop_stock[4] = 11 |
169 |
global.shop_gold_requirement[1] = 0 |
170 |
global.shop_gold_requirement[2] = 0 |
171 |
global.shop_gold_requirement[3] = 0 |
172 |
global.shop_gold_requirement[4] = 0 |
173 |
bg_index = 3 |
174 |
shop_audio = mus_gunshop |
175 |
shop_geno = true |
176 |
} |
177 |
if (shop_name == "Steamworks Vendy") |
178 |
{ |
179 |
global.shop_item[1] = "Gravity Granola" |
180 |
global.shop_item[2] = "Dihydrogen Monoxide" |
181 |
global.shop_item[3] = "Popato Chisps" |
182 |
global.shop_item[4] = "Safety Goggles" |
183 |
global.shop_stock[1] = 12 |
184 |
global.shop_stock[2] = 13 |
185 |
global.shop_stock[3] = 14 |
186 |
global.shop_stock[4] = 15 |
187 |
global.shop_gold_requirement[1] = 36 |
188 |
global.shop_gold_requirement[2] = 32 |
189 |
global.shop_gold_requirement[3] = 24 |
190 |
global.shop_gold_requirement[4] = 70 |
191 |
if (global.sworks_flag[26] < 2) |
192 |
{ |
193 |
global.shop_talk[1] = "Your attitude" |
194 |
global.shop_talk[2] = "The Steamworks" |
195 |
global.shop_talk[3] = "Axis" |
196 |
global.shop_talk[4] = "Snacks" |
197 |
} |
198 |
else |
199 |
{ |
200 |
global.shop_talk[1] = "Creator" |
201 |
global.shop_talk[2] = "The Steamworks" |
202 |
global.shop_talk[3] = "Axis" |
203 |
global.shop_talk[4] = "Snacks" |
204 |
} |
205 |
bg_index = 4 |
206 |
instance_create(92, 13, obj_steamworks_vendy_body_shop) |
207 |
instance_create(92, 13, obj_steamworks_vendy_shop) |
208 |
shop_audio = mus_gunshop |
209 |
} |
210 |
if (shop_name == "Steamworks Vendy Geno") |
211 |
{ |
212 |
global.shop_item[1] = "Gravity Granola" |
213 |
global.shop_item[2] = "Dihydrogen Monoxide" |
214 |
global.shop_item[3] = "Popato Chisps" |
215 |
global.shop_item[4] = "Safety Goggles" |
216 |
global.shop_stock[1] = 12 |
217 |
global.shop_stock[2] = 13 |
218 |
global.shop_stock[3] = 14 |
219 |
global.shop_stock[4] = 15 |
220 |
global.shop_gold_requirement[1] = 0 |
221 |
global.shop_gold_requirement[2] = 0 |
222 |
global.shop_gold_requirement[3] = 0 |
223 |
global.shop_gold_requirement[4] = 0 |
224 |
bg_index = 4 |
225 |
instance_create(92, 13, obj_steamworks_vendy_body_shop) |
226 |
instance_create(92, 13, obj_steamworks_vendy_shop) |
227 |
shop_audio = mus_gunshop |
228 |
shop_geno = true |
229 |
} |
230 |
if (shop_name == "Hotel Shop") |
231 |
{ |
232 |
global.shop_item[1] = "Monster Candy+" |
233 |
global.shop_item[2] = "C-B Strudel" |
234 |
global.shop_item[3] = "Floral Cupcake" |
235 |
global.shop_item[4] = "Delta Rune Patch" |
236 |
global.shop_stock[1] = 16 |
237 |
global.shop_stock[2] = 17 |
238 |
global.shop_stock[3] = 18 |
239 |
global.shop_stock[4] = 19 |
240 |
global.shop_gold_requirement[1] = 26 |
241 |
global.shop_gold_requirement[2] = 34 |
242 |
global.shop_gold_requirement[3] = 50 |
243 |
global.shop_gold_requirement[4] = 100 |
244 |
global.shop_talk[1] = "Asgore" |
245 |
global.shop_talk[2] = "Hotland" |
246 |
global.shop_talk[3] = "The Sock" |
247 |
global.shop_talk[4] = "Toriel?" |
248 |
if (global.hotland_flag[4] == 1) |
249 |
global.shop_talk[2] = "Hotland (NEW)" |
250 |
if (global.hotland_flag[5] == 1) |
251 |
global.shop_talk[4] = "Toriel? (NEW)" |
252 |
bg_index = 5 |
253 |
instance_create(0, 0, obj_hotel_shop_body) |
254 |
instance_create(0, 0, obj_hotel_shop_puppet) |
255 |
instance_create(0, 0, obj_hotel_shop_head) |
256 |
instance_create(0, 0, obj_hotel_shop_props) |
257 |
shop_audio = mus_gunshop |
258 |
} |
259 |
if (shop_name == "Hotel Shop Geno") |
260 |
{ |
261 |
global.shop_item[1] = "Monster Candy+" |
262 |
global.shop_item[2] = "C-B Strudel" |
263 |
global.shop_item[3] = "Floral Cupcake" |
264 |
global.shop_item[4] = "Delta Rune Patch" |
265 |
global.shop_stock[1] = 16 |
266 |
global.shop_stock[2] = 17 |
267 |
global.shop_stock[3] = 18 |
268 |
global.shop_stock[4] = 19 |
269 |
global.shop_gold_requirement[1] = 0 |
270 |
global.shop_gold_requirement[2] = 0 |
271 |
global.shop_gold_requirement[3] = 0 |
272 |
global.shop_gold_requirement[4] = 0 |
273 |
bg_index = 7 |
274 |
shop_audio = mus_gunshop |
275 |
shop_geno = true |
276 |
} |
277 |
if (global.sound_carry_overworld == false) |
278 |
{ |
279 |
scr_audio_stop_soundscr_audio_stop_soundfunction scr_audio_stop_sound(argument0) //gml_Script_scr_audio_stop_sound
{
audio_array_val = 0
sound_y[audio_array_val] = mus_apprehension_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_dalvbattle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_dalvopening_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_dalvbattle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_decibat_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_dalvopening_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_01_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_02_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_03_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_04_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_05_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_06_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_07_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_08_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_09_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_10_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_finale_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_battle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_floweynew_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_funsized_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_genobattle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_mart_geno_wind_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_martletbattle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_nobodycame_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_occupied_turf_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_prebattle1_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_prebattle2_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_battle_snowdin
audio_array_val += 1
sound_y[audio_array_val] = mus_trial_by_fury
audio_array_val += 1
sound_y[audio_array_val] = mus_prebattle3_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_heatwave_approaching
for (i = 0; i < array_length_1d(sound_y); i += 1)
{
var audio_gain = audio_sound_get_gain(sound_y[i])
if (audio_gain <= argument0)
audio_stop_sound(sound_y[i])
}
} (0) |
280 |
audio_sound_gain(shop_audio, 1, 0) |
281 |
audio_play_sound(shop_audio, 20, true) |
282 |
} |
283 |
instance_create(0, 0, obj_shop_fade_in_screen) |
284 |
if (shop_name == "Steamworks Vendy" || shop_name == "Steamworks Vendy Geno") |
285 |
{ |
286 |
if (global.sworks_flag[16] == 0) |
287 |
{ |
288 |
instance_create(0, 0, obj_dialogue_intro_shop) |
289 |
instance_create(0, 120, obj_talk_screen_shop) |
290 |
return; |
291 |
} |
292 |
} |
293 |
instance_create(0, 120, obj_main_screen_shop) |
294 |
instance_create((obj_main_screen_shop.x + 210), obj_main_screen_shop.y, obj_item_description_screen_shop) |
295 |
if (shop_geno == false) |
296 |
{ |
297 |
instance_create((obj_main_screen_shop.x + 240), (obj_main_screen_shop.y + 10), obj_text_main_screen_shop) |
298 |
instance_create((obj_main_screen_shop.x + 229), (obj_main_screen_shop.y + 19), obj_heart_main_screen_shop) |
299 |
instance_create((obj_main_screen_shop.x + 20), (obj_main_screen_shop.y + 10), obj_dialogue_main_screen_shop) |
300 |
} |
301 |
else |
302 |
{ |
303 |
instance_create((obj_main_screen_shop.x + 240), (obj_main_screen_shop.y + 10), obj_text_main_screen_shop_geno) |
304 |
instance_create((obj_main_screen_shop.x + 229), (obj_main_screen_shop.y + 19), obj_heart_main_screen_shop_geno) |
305 |
instance_create((obj_main_screen_shop.x + 20), (obj_main_screen_shop.y + 10), obj_dialogue_main_screen_shop_geno) |
306 |
} |