Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_dialogue_battle_action_selected_action_2_martlet_genocide

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

function scr_dialogue_battle_action_selected_action_2_martlet_genocide() //gml_Script_scr_dialogue_battle_action_selected_action_2_martlet_genocide { var enemy_mode = global.enemy_mode var action_2_selected_count = global.action_2_selected_count if (enemy_mode == 3) { var random_number = irandom_range(1, 2) if (random_number == 1) { message[0] = "* You block out Martlet's rambling.#* She continues anyway." global.last_action_selected = "Action 2 Fight Mode 1" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } else { message[0] = "* You try not to hear Martlet out." global.last_action_selected = "Action 2 Fight Mode 2" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } } else { message[0] = "* You ignore Martlet's pleas." 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_martlet_genocide
2
{
3
    var enemy_mode = global.enemy_mode
4
    var action_2_selected_count = global.action_2_selected_count
5
    if (enemy_mode == 3)
6
    {
7
        var random_number = irandom_range(1, 2)
8
        if (random_number == 1)
9
        {
10
            message[0] = "* You block out Martlet's rambling.#* She continues anyway."
11
            global.last_action_selected = "Action 2 Fight Mode 1"
12
            global.last_action_selected_2 = "Nothing"
13
            global.last_action_selected_3 = "Nothing"
14
        }
15
        else
16
        {
17
            message[0] = "* You try not to hear Martlet out."
18
            global.last_action_selected = "Action 2 Fight Mode 2"
19
            global.last_action_selected_2 = "Nothing"
20
            global.last_action_selected_3 = "Nothing"
21
        }
22
    }
23
    else
24
    {
25
        message[0] = "* You ignore Martlet's pleas."
26
        global.last_action_selected = "Action 2 Message 0"
27
        global.last_action_selected_2 = "Nothing"
28
        global.last_action_selected_3 = "Nothing"
29
    }
30
}