Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dialogue_battle_win_pacifist_Create_0

(view raw script w/o annotations or w/e)
1
global.player_gold += global.enemy_gold;
2
if (global.game_mode == "customs")
3
{
4
    message[0] = "* YOU WON!#* You earned 0 XP and " + string(global.enemy_gold) + " gold.";
5
}
6
else if (global.game_mode == "yellow")
7
{
8
    if (global.battle_enemy_name == "froggit intro")
9
    {
10
        message[0] = "* (The mysterious goat lady#  scared the Froggit away.)";
11
    }
12
    else if (global.battle_enemy_name == "decibat")
13
    {
14
        if (global.enemy_sparing == true)
15
            message[0] = "* Sweet silence...";
16
        else
17
            message[0] = "* Decibat flaps away to find#  someplace quieter.";
18
    }
19
    else
20
    {
21
        message[0] = "* YOU WON!#* You earned 0 XP and " + string(global.enemy_gold) + " gold.";
22
    }
23
}
24
message_current = 0;
25
message_end = 0;
26
message_draw = "";
27
increase = global.text_speed;
28
characters = 0;
29
hold = 0;
30
message_length = string_length(message[message_current]);
31
moveable = true;
32
script_execute(scr_generate_text_counters);