Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_battle_core_directory_flavor_text_enemy_1_action_1

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

function scr_battle_core_directory_flavor_text_enemy_1_action_1() { var action_1_selected_count = global.action_1_selected_count; var battle_enemy_name = global.battle_enemy_name; var game_mode = global.game_mode; if (game_mode == "customs") { if (battle_enemy_name == "craniex") message[0] = "* It seems talking to Craniex# makes him more friendly towards# you."; } else if (game_mode == "yellow") { if (battle_enemy_name == "crispy scroll solo") { if (action_1_selected_count >= 2) message[0] = "* You have made Crispy Scroll's# day."; else if (action_1_selected_count == 1) message[0] = "* Crispy Scroll can't believe# that just happened."; } else if (battle_enemy_name == "crispy scroll penilla duo") { if (action_1_selected_count >= 2) message[0] = "* You have made Crispy Scroll's# day."; else if (action_1_selected_count == 1) message[0] = "* Crispy Scroll can't believe# that just happened."; } else if (battle_enemy_name == "trihecta together") { if (action_1_selected_count >= 1) message[0] = "* Trihecta begins to sway back# and forth."; else message[0] = "* Trihecta balances out."; } } }
()
2
{
3
    var action_1_selected_count = global.action_1_selected_count;
4
    var battle_enemy_name = global.battle_enemy_name;
5
    var game_mode = global.game_mode;
6
    if (game_mode == "customs")
7
    {
8
        if (battle_enemy_name == "craniex")
9
            message[0] = "* It seems talking to Craniex#  makes him more friendly towards#  you.";
10
    }
11
    else if (game_mode == "yellow")
12
    {
13
        if (battle_enemy_name == "crispy scroll solo")
14
        {
15
            if (action_1_selected_count >= 2)
16
                message[0] = "* You have made Crispy Scroll's#  day.";
17
            else if (action_1_selected_count == 1)
18
                message[0] = "* Crispy Scroll can't believe#  that just happened.";
19
        }
20
        else if (battle_enemy_name == "crispy scroll penilla duo")
21
        {
22
            if (action_1_selected_count >= 2)
23
                message[0] = "* You have made Crispy Scroll's#  day.";
24
            else if (action_1_selected_count == 1)
25
                message[0] = "* Crispy Scroll can't believe#  that just happened.";
26
        }
27
        else if (battle_enemy_name == "trihecta together")
28
        {
29
            if (action_1_selected_count >= 1)
30
                message[0] = "* Trihecta begins to sway back#  and forth.";
31
            else
32
                message[0] = "* Trihecta balances out.";
33
        }
34
    }
35
}