Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_create_background_battle_yellow

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

function scr_create_background_battle_yellow() //gml_Script_scr_create_background_battle_yellow { var current_world_value = script_execute(gml_Script_scr_determine_world_value_yellow) switch current_world_value { case 0: case 1: instance_create(0, 0, obj_background_enemy_battle) break case 2: instance_create(0, 0, obj_background_enemy_battle_snowdin_yellow) break case 3: instance_create(0, 0, obj_background_enemy_battle_dunes_yellow) break case 4: instance_create_depth(0, 0, 50, obj_background_enemy_battle_steamworks_yellow) break } }
() //gml_Script_scr_create_background_battle_yellow
2
{
3
    var current_world_value = script_execute(gml_Script_scr_determine_world_value_yellow)
4
    switch current_world_value
5
    {
6
        case 0:
7
        case 1:
8
            instance_create(0, 0, obj_background_enemy_battle)
9
            break
10
        case 2:
11
            instance_create(0, 0, obj_background_enemy_battle_snowdin_yellow)
12
            break
13
        case 3:
14
            instance_create(0, 0, obj_background_enemy_battle_dunes_yellow)
15
            break
16
        case 4:
17
            instance_create_depth(0, 0, 50, obj_background_enemy_battle_steamworks_yellow)
18
            break
19
    }
20
21
}