Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_dialogue_battle_action_selected_action_2_rorrim_a

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

function scr_dialogue_battle_action_selected_action_2_rorrim_a() //gml_Script_scr_dialogue_battle_action_selected_action_2_rorrim_a { var action_2_selected_count = global.action_2_selected_count if (global.enemy_low_hp == true) { message[0] = "* You critique your appearance.#* Rorrim seems disgusted." global.last_action_selected = "Action 2 Low HP" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } else if (global.action_3_selected_count > 0) { message[0] = "* You critique your appearance.#* Rorrim is very pleased." global.last_action_selected = "Action 2 Message 1" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } else { random_number = 0 if (random_number == 0) { message[0] = "* You critique your outfit.#* Rorrim seems annoyed." 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_rorrim_a
2
{
3
    var action_2_selected_count = global.action_2_selected_count
4
    if (global.enemy_low_hp == true)
5
    {
6
        message[0] = "* You critique your appearance.#* Rorrim seems disgusted."
7
        global.last_action_selected = "Action 2 Low HP"
8
        global.last_action_selected_2 = "Nothing"
9
        global.last_action_selected_3 = "Nothing"
10
    }
11
    else if (global.action_3_selected_count > 0)
12
    {
13
        message[0] = "* You critique your appearance.#* Rorrim is very pleased."
14
        global.last_action_selected = "Action 2 Message 1"
15
        global.last_action_selected_2 = "Nothing"
16
        global.last_action_selected_3 = "Nothing"
17
    }
18
    else
19
    {
20
        random_number = 0
21
        if (random_number == 0)
22
        {
23
            message[0] = "* You critique your outfit.#* Rorrim seems annoyed."
24
            global.last_action_selected = "Action 2 Message 0"
25
            global.last_action_selected_2 = "Nothing"
26
            global.last_action_selected_3 = "Nothing"
27
        }
28
    }
29
}