Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_dialogue_battle_action_selected_action_1_decibat

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

function scr_dialogue_battle_action_selected_action_1_decibat() //gml_Script_scr_dialogue_battle_action_selected_action_1_decibat { var action_1_selected_count = global.action_1_selected_count if (global.enemy_low_hp == true) { random_number = irandom_range(0, 1) if (random_number == 0) { message[0] = "* Decibat seems to have given up# hope." global.last_action_selected = "Action 1 Low HP" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } else if (random_number == 1) { message[0] = "* Decibat is in too much pain to# care." global.last_action_selected = "Action 1 Low HP" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } } else if (global.enemy_sparing == true) { message[0] = "* You open your mouth to speak.#* Decibat covers your mouth." global.last_action_selected = "Action 1 Sparing" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } else { message[0] = "* Decibat hushes you furiously." global.last_action_selected = "Action 1 Message 0" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } }
() //gml_Script_scr_dialogue_battle_action_selected_action_1_decibat
2
{
3
    var action_1_selected_count = global.action_1_selected_count
4
    if (global.enemy_low_hp == true)
5
    {
6
        random_number = irandom_range(0, 1)
7
        if (random_number == 0)
8
        {
9
            message[0] = "* Decibat seems to have given up#  hope."
10
            global.last_action_selected = "Action 1 Low HP"
11
            global.last_action_selected_2 = "Nothing"
12
            global.last_action_selected_3 = "Nothing"
13
        }
14
        else if (random_number == 1)
15
        {
16
            message[0] = "* Decibat is in too much pain to#  care."
17
            global.last_action_selected = "Action 1 Low HP"
18
            global.last_action_selected_2 = "Nothing"
19
            global.last_action_selected_3 = "Nothing"
20
        }
21
    }
22
    else if (global.enemy_sparing == true)
23
    {
24
        message[0] = "* You open your mouth to speak.#* Decibat covers your mouth."
25
        global.last_action_selected = "Action 1 Sparing"
26
        global.last_action_selected_2 = "Nothing"
27
        global.last_action_selected_3 = "Nothing"
28
    }
29
    else
30
    {
31
        message[0] = "* Decibat hushes you furiously."
32
        global.last_action_selected = "Action 1 Message 0"
33
        global.last_action_selected_2 = "Nothing"
34
        global.last_action_selected_3 = "Nothing"
35
    }
36
}