Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_recreate_heart_battle_menu_text_el_bailador

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

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