Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_summon_shop

(view raw script w/o annotations or w/e)
1
function scr_summon_shop
scr_summon_shop

function scr_summon_shop(arg0) { global.current_room_overworld = room_get_name(room); switch (arg0) { case "Wild East Gunshop": global.sound_carry_overworld = false; if (global.dunes_flag[20] == 9 && (global.dunes_flag[24] == 0 || global.dunes_flag[24] == 2)) global.sound_carry_overworld = true; break; default: global.sound_carry_overworld = true; break; } global.shop_name = arg0; instance_create(__view_get(e__VW.XView, 0), __view_get(e__VW.YView, 0), obj_overworld_shop_fade_out_screen); scr_cutscene_start(); } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
(arg0)
2
{
3
    global.current_room_overworld = room_get_name(room);
4
    switch (arg0)
5
    {
6
        case "Wild East Gunshop":
7
            global.sound_carry_overworld = false;
8
            if (global.dunes_flag[20] == 9 && (global.dunes_flag[24] == 0 || global.dunes_flag[24] == 2))
9
                global.sound_carry_overworld = true;
10
            break;
11
        default:
12
            global.sound_carry_overworld = true;
13
            break;
14
    }
15
    global.shop_name = arg0;
16
    instance_create(__view_get(e__VW.XView, 0), __view_get(e__VW.YView, 0), obj_overworld_shop_fade_out_screen);
17
    scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() { global.cutscene = true; obj_pl.state = scr_frozen_state; obj_pl.image_index = 0; obj_pl.image_speed = 0; }
();
18
}
19
20
enum e__VW
21
{
22
    XView,
23
    YView,
24
    WView,
25
    HView,
26
    Angle,
27
    HBorder,
28
    VBorder,
29
    HSpeed,
30
    VSpeed,
31
    Object,
32
    Visible,
33
    XPort,
34
    YPort,
35
    WPort,
36
    HPort,
37
    Camera,
38
    SurfaceID
39
}