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(argument0) //gml_Script_scr_summon_shop { global.current_room_overworld = room_get_name(room) switch argument0 { 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 = argument0 instance_create(__view_get((0 << 0), 0), __view_get((1 << 0), 0), obj_overworld_shop_fade_out_screen) scr_cutscene_start() }
(argument0) //gml_Script_scr_summon_shop
2
{
3
    global.current_room_overworld = room_get_name(room)
4
    switch argument0
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
16
    global.shop_name = argument0
17
    instance_create(__view_get((0 << 0), 0), __view_get((1 << 0), 0), obj_overworld_shop_fade_out_screen)
18
    scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_scr_frozen_state obj_pl.image_index = 0 obj_pl.image_speed = 0 }
()
19
}