Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_dialogue_battle_action_selected_action_1_rorrim_a

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

function scr_dialogue_battle_action_selected_action_1_rorrim_a() //gml_Script_scr_dialogue_battle_action_selected_action_1_rorrim_a { var action_1_selected_count = global.action_1_selected_count if (global.enemy_low_hp == true) { message[0] = "* You slowly adjust your hat.#* Rorrim seems distraught." global.last_action_selected = "Action 1 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 adjust your hat.#* Rorrim seems pleased." global.last_action_selected = "Action 1 Message 0" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } else if (random_number == 1) { message[0] = "* You adjust your hat.#* Rorrim seems pleased." 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_rorrim_a
2
{
3
    var action_1_selected_count = global.action_1_selected_count
4
    if (global.enemy_low_hp == true)
5
    {
6
        message[0] = "* You slowly adjust your hat.#* Rorrim seems distraught."
7
        global.last_action_selected = "Action 1 Low HP"
8
        global.last_action_selected_2 = "Nothing"
9
        global.last_action_selected_3 = "Nothing"
10
    }
11
    else
12
    {
13
        random_number = irandom_range(0, 1)
14
        if (random_number == 0)
15
        {
16
            message[0] = "* You adjust your hat.#* Rorrim seems pleased."
17
            global.last_action_selected = "Action 1 Message 0"
18
            global.last_action_selected_2 = "Nothing"
19
            global.last_action_selected_3 = "Nothing"
20
        }
21
        else if (random_number == 1)
22
        {
23
            message[0] = "* You adjust your hat.#* Rorrim seems pleased."
24
            global.last_action_selected = "Action 1 Message 0"
25
            global.last_action_selected_2 = "Nothing"
26
            global.last_action_selected_3 = "Nothing"
27
        }
28
    }
29
}