Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_dialogue_battle_action_selected_action_2_penilla_a

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

function scr_dialogue_battle_action_selected_action_2_penilla_a() //gml_Script_scr_dialogue_battle_action_selected_action_2_penilla_a { if (global.enemy_low_hp == true) { message[0] = "* You tell Penilla that she's# wasting her time." global.last_action_selected = "Action 2 Low HP" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } else { random_number = irandom_range(0, 1) if (random_number == 0) { message[0] = "* You put yourself in between# Penilla and her work." global.last_action_selected = "Action 2 Message 0" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } else if (random_number == 1) { message[0] = "* You put yourself in between# Penilla and her work." global.last_action_selected = "Action 2 Message 0" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } } }
() //gml_Script_scr_dialogue_battle_action_selected_action_2_penilla_a
2
{
3
    if (global.enemy_low_hp == true)
4
    {
5
        message[0] = "* You tell Penilla that she's#  wasting her time."
6
        global.last_action_selected = "Action 2 Low HP"
7
        global.last_action_selected_2 = "Nothing"
8
        global.last_action_selected_3 = "Nothing"
9
    }
10
    else
11
    {
12
        random_number = irandom_range(0, 1)
13
        if (random_number == 0)
14
        {
15
            message[0] = "* You put yourself in between#  Penilla and her work."
16
            global.last_action_selected = "Action 2 Message 0"
17
            global.last_action_selected_2 = "Nothing"
18
            global.last_action_selected_3 = "Nothing"
19
        }
20
        else if (random_number == 1)
21
        {
22
            message[0] = "* You put yourself in between#  Penilla and her work."
23
            global.last_action_selected = "Action 2 Message 0"
24
            global.last_action_selected_2 = "Nothing"
25
            global.last_action_selected_3 = "Nothing"
26
        }
27
    }
28
}