Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_recreate_heart_battle_menu_text_dummy_training_pacifist

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

function scr_recreate_heart_battle_menu_text_dummy_training_pacifist() { var last_text_move_select = global.last_text_move_select; if (text_deadlock_1 == true) { instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, text_deadlock_contents_1); } else { var random_text_move_select = irandom_range(1, 3); if (random_text_move_select == 1) { instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1); text_deadlock_contents_1 = 3020; text_deadlock_1 = true; } else if (random_text_move_select == 2) { instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2); text_deadlock_contents_1 = 3021; text_deadlock_1 = true; } else if (random_text_move_select == 3) { instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3); text_deadlock_contents_1 = 3022; text_deadlock_1 = true; } } }
()
2
{
3
    var last_text_move_select = global.last_text_move_select;
4
    if (text_deadlock_1 == true)
5
    {
6
        instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, text_deadlock_contents_1);
7
    }
8
    else
9
    {
10
        var random_text_move_select = irandom_range(1, 3);
11
        if (random_text_move_select == 1)
12
        {
13
            instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1);
14
            text_deadlock_contents_1 = 3020;
15
            text_deadlock_1 = true;
16
        }
17
        else if (random_text_move_select == 2)
18
        {
19
            instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2);
20
            text_deadlock_contents_1 = 3021;
21
            text_deadlock_1 = true;
22
        }
23
        else if (random_text_move_select == 3)
24
        {
25
            instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3);
26
            text_deadlock_contents_1 = 3022;
27
            text_deadlock_1 = true;
28
        }
29
    }
30
}