Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_sousborg_act_spawner_Step_0

(view raw script w/o annotations or w/e)
1
if instance_exists(obj_text_battle_move_selected_action_parent)
2
{
3
    if global.enemy_sparing
4
        dialogue_spawn_noloop = true
5
    if (dialogue_spawn_noloop == false)
6
    {
7
        if (!instance_exists(obj_quote_battle_sousborg_act))
8
        {
9
            instance_deactivate_object(obj_heart_battle_menu_act)
10
            if (global.enemy_mode == 0 && (!instance_exists(obj_sousborg_demonstration_egg)))
11
                instance_create_depth(-60, 100, -9999, obj_sousborg_demonstration_egg)
12
            else if instance_exists(obj_sousborg_demonstration_egg)
13
                obj_sousborg_demonstration_egg.destroy_self = false
14
            instance_create(402, 68, obj_quote_bubble_battle_yellow_2)
15
            instance_create(0, 0, obj_quote_battle_sousborg_act)
16
            dialogue_spawn_noloop = true
17
        }
18
    }
19
}
20
else
21
{
22
    dialogue_spawn_noloop = false
23
    if instance_exists(obj_heart_battle_menu_act)
24
        instance_activate_object(obj_heart_battle_menu_act)
25
    if instance_exists(obj_sousborg_demonstration_egg)
26
        obj_sousborg_demonstration_egg.destroy_self = true
27
    if instance_exists(obj_quote_battle_sousborg_act)
28
    {
29
        instance_destroy(obj_quote_bubble_battle_yellow_2)
30
        instance_destroy(obj_quote_battle_sousborg_act)
31
    }
32
}