Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_intro_check_Create_0

(view raw script w/o annotations or w/e)
1
var battle_enemy_name = global.battle_enemy_name
2
if (global.game_mode == "customs")
3
{
4
    if (!instance_exists(obj_battle_generator))
5
        instance_create(0, 0, obj_battle_generator)
6
    instance_destroy()
7
}
8
else if (global.game_mode == "yellow")
9
{
10
    if (battle_enemy_name == "decibat")
11
        script_execute(gml_Script_scr_generate_battle_decibat_intro)
12
    else
13
    {
14
        if (!instance_exists(obj_battle_generator))
15
            instance_create(0, 0, obj_battle_generator)
16
        instance_destroy()
17
    }
18
}