Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_recreate_heart_battle_menu_text_martlet_genocide

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

function scr_recreate_heart_battle_menu_text_martlet_genocide() { var last_text_move_select = global.last_text_move_select; var enemy_mode = global.enemy_mode; if (text_deadlock_1 == true) { instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, text_deadlock_contents_1); } else if (last_text_move_select == 0) { instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_intro); text_deadlock_contents_1 = 3004; text_deadlock_1 = true; } else { var random_text_move_select; if (enemy_mode == 3) random_text_move_select = irandom_range(1, 5); else if (enemy_mode == 4) random_text_move_select = irandom_range(1, 2); else 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; } else if (random_text_move_select == 4) { instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4); text_deadlock_contents_1 = 3023; text_deadlock_1 = true; } else if (random_text_move_select == 5) { instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_5); text_deadlock_contents_1 = 3024; text_deadlock_1 = true; } } }
()
2
{
3
    var last_text_move_select = global.last_text_move_select;
4
    var enemy_mode = global.enemy_mode;
5
    if (text_deadlock_1 == true)
6
    {
7
        instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, text_deadlock_contents_1);
8
    }
9
    else if (last_text_move_select == 0)
10
    {
11
        instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_intro);
12
        text_deadlock_contents_1 = 3004;
13
        text_deadlock_1 = true;
14
    }
15
    else
16
    {
17
        var random_text_move_select;
18
        if (enemy_mode == 3)
19
            random_text_move_select = irandom_range(1, 5);
20
        else if (enemy_mode == 4)
21
            random_text_move_select = irandom_range(1, 2);
22
        else
23
            random_text_move_select = irandom_range(1, 3);
24
        if (random_text_move_select == 1)
25
        {
26
            instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1);
27
            text_deadlock_contents_1 = 3020;
28
            text_deadlock_1 = true;
29
        }
30
        else if (random_text_move_select == 2)
31
        {
32
            instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2);
33
            text_deadlock_contents_1 = 3021;
34
            text_deadlock_1 = true;
35
        }
36
        else if (random_text_move_select == 3)
37
        {
38
            instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3);
39
            text_deadlock_contents_1 = 3022;
40
            text_deadlock_1 = true;
41
        }
42
        else if (random_text_move_select == 4)
43
        {
44
            instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4);
45
            text_deadlock_contents_1 = 3023;
46
            text_deadlock_1 = true;
47
        }
48
        else if (random_text_move_select == 5)
49
        {
50
            instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_5);
51
            text_deadlock_contents_1 = 3024;
52
            text_deadlock_1 = true;
53
        }
54
    }
55
}