Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_dialogue_battle_action_selected_action_2_frostermit_a

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

function scr_dialogue_battle_action_selected_action_2_frostermit_a() //gml_Script_scr_dialogue_battle_action_selected_action_2_frostermit_a { var action_2_selected_count = global.action_2_selected_count var enemy_mode = global.enemy_mode if (enemy_mode == 0) { if (global.enemy_low_hp == true) { message[0] = "* You wiggle around in front of# the igloo.#* Nothing happens." global.last_action_selected = "Action 2 Low HP" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } else { message[0] = "* You do a little dance.#* Someone has come out to# investigate." global.last_action_selected = "Action 2 Out" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" if (global.battle_enemy_name == "frostermit know cone duo") global.enemy_special_text = 1 } } else if (enemy_mode == 1) { if (global.enemy_low_hp == true) { message[0] = "* You mimic Frostermit's crab# moves.#* It isn't pleased." global.last_action_selected = "Action 2 Low HP" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } else if (action_2_selected_count >= 2) { message[0] = "* You try to do the worm.#* You fall flat on the snow, but# Frostermit is impressed anyway." global.last_action_selected = "Action 2 Message 0" global.last_action_selected_2 = "Nothing" global.last_action_selected_3 = "Nothing" } else { message[0] = "* You start doing a crab walk# dance.#* Frostermit jumps in." 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_frostermit_a
2
{
3
    var action_2_selected_count = global.action_2_selected_count
4
    var enemy_mode = global.enemy_mode
5
    if (enemy_mode == 0)
6
    {
7
        if (global.enemy_low_hp == true)
8
        {
9
            message[0] = "* You wiggle around in front of#  the igloo.#* Nothing happens."
10
            global.last_action_selected = "Action 2 Low HP"
11
            global.last_action_selected_2 = "Nothing"
12
            global.last_action_selected_3 = "Nothing"
13
        }
14
        else
15
        {
16
            message[0] = "* You do a little dance.#* Someone has come out to#  investigate."
17
            global.last_action_selected = "Action 2 Out"
18
            global.last_action_selected_2 = "Nothing"
19
            global.last_action_selected_3 = "Nothing"
20
            if (global.battle_enemy_name == "frostermit know cone duo")
21
                global.enemy_special_text = 1
22
        }
23
    }
24
    else if (enemy_mode == 1)
25
    {
26
        if (global.enemy_low_hp == true)
27
        {
28
            message[0] = "* You mimic Frostermit's crab#  moves.#* It isn't pleased."
29
            global.last_action_selected = "Action 2 Low HP"
30
            global.last_action_selected_2 = "Nothing"
31
            global.last_action_selected_3 = "Nothing"
32
        }
33
        else if (action_2_selected_count >= 2)
34
        {
35
            message[0] = "* You try to do the worm.#* You fall flat on the snow, but#  Frostermit is impressed anyway."
36
            global.last_action_selected = "Action 2 Message 0"
37
            global.last_action_selected_2 = "Nothing"
38
            global.last_action_selected_3 = "Nothing"
39
        }
40
        else
41
        {
42
            message[0] = "* You start doing a crab walk#  dance.#* Frostermit jumps in."
43
            global.last_action_selected = "Action 2 Message 0"
44
            global.last_action_selected_2 = "Nothing"
45
            global.last_action_selected_3 = "Nothing"
46
        }
47
    }
48
}