Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_recreate_heart_battle_menu_text_feisty_four

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

function scr_recreate_heart_battle_menu_text_feisty_four() //gml_Script_scr_recreate_heart_battle_menu_text_feisty_four { var last_text_move_select = global.last_text_move_select instance_create_depth((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), -642, obj_dialogue_battle_move_select_any) if (text_deadlock_1 == true) { } else if (last_text_move_select == 0) { text_deadlock_message[0] = "* Time to get feisty!" text_deadlock_1 = true } else { var random_text_move_select = irandom_range(1, 9) if (random_text_move_select == 1) { text_deadlock_message[0] = "* Ed pounds his fists together# triumphantly!" text_deadlock_1 = true } else if (random_text_move_select == 2) { text_deadlock_message[0] = "* Moray sharpens their blade." text_deadlock_1 = true } else if (random_text_move_select == 3) { text_deadlock_message[0] = "* Ace is practicing sleight of# hand." text_deadlock_1 = true } else if (random_text_move_select == 4) { text_deadlock_message[0] = "* Mooch looks around suspiciously." text_deadlock_1 = true } else if (random_text_move_select == 5) { text_deadlock_message[0] = "* The four are bickering." text_deadlock_1 = true } else if (random_text_move_select == 6) { text_deadlock_message[0] = "* Mooch and Ace are playing 52# card pickup." text_deadlock_1 = true } else if (random_text_move_select == 7) { text_deadlock_message[0] = "* Moray leans on Ed to rest up." text_deadlock_1 = true } else if (random_text_move_select == 8) { text_deadlock_message[0] = "* Smells like teamwork." text_deadlock_1 = true } else if (random_text_move_select == 9) { text_deadlock_message[0] = "* The four are deciding who# attacks next." text_deadlock_1 = true } } with (obj_dialogue_battle_move_select_any) { message[0] = obj_heart_battle_menu.text_deadlock_message[0] message_length = string_length(message[message_current]) } }
() //gml_Script_scr_recreate_heart_battle_menu_text_feisty_four
2
{
3
    var last_text_move_select = global.last_text_move_select
4
    instance_create_depth((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), -642, obj_dialogue_battle_move_select_any)
5
    if (text_deadlock_1 == true)
6
    {
7
    }
8
    else if (last_text_move_select == 0)
9
    {
10
        text_deadlock_message[0] = "* Time to get feisty!"
11
        text_deadlock_1 = true
12
    }
13
    else
14
    {
15
        var random_text_move_select = irandom_range(1, 9)
16
        if (random_text_move_select == 1)
17
        {
18
            text_deadlock_message[0] = "* Ed pounds his fists together#  triumphantly!"
19
            text_deadlock_1 = true
20
        }
21
        else if (random_text_move_select == 2)
22
        {
23
            text_deadlock_message[0] = "* Moray sharpens their blade."
24
            text_deadlock_1 = true
25
        }
26
        else if (random_text_move_select == 3)
27
        {
28
            text_deadlock_message[0] = "* Ace is practicing sleight of#  hand."
29
            text_deadlock_1 = true
30
        }
31
        else if (random_text_move_select == 4)
32
        {
33
            text_deadlock_message[0] = "* Mooch looks around suspiciously."
34
            text_deadlock_1 = true
35
        }
36
        else if (random_text_move_select == 5)
37
        {
38
            text_deadlock_message[0] = "* The four are bickering."
39
            text_deadlock_1 = true
40
        }
41
        else if (random_text_move_select == 6)
42
        {
43
            text_deadlock_message[0] = "* Mooch and Ace are playing 52#  card pickup."
44
            text_deadlock_1 = true
45
        }
46
        else if (random_text_move_select == 7)
47
        {
48
            text_deadlock_message[0] = "* Moray leans on Ed to rest up."
49
            text_deadlock_1 = true
50
        }
51
        else if (random_text_move_select == 8)
52
        {
53
            text_deadlock_message[0] = "* Smells like teamwork."
54
            text_deadlock_1 = true
55
        }
56
        else if (random_text_move_select == 9)
57
        {
58
            text_deadlock_message[0] = "* The four are deciding who#  attacks next."
59
            text_deadlock_1 = true
60
        }
61
    }
62
    with (obj_dialogue_battle_move_select_any)
63
    {
64
        message[0] = obj_heart_battle_menu.text_deadlock_message[0]
65
        message_length = string_length(message[message_current])
66
    }
67
}