Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_card_game_card_Destroy_0

(view raw script w/o annotations or w/e)
1
with (obj_card_game_card)
2
{
3
    if (card_number > other.card_number)
4
    {
5
        if (!alarm[0])
6
            alarm[0] = 1 + (card_row - other.card_row) * 1.2
alarm[0]

card_is_active = true if (y < 0 && card_number < 20) audio_play_sound(snd_card_game_deal, 1, 0)
7
        if (card_number == 20)
8
            alarm[0] = 1 + (5 - other.card_row) * 1.2
alarm[0]

card_is_active = true if (y < 0 && card_number < 20) audio_play_sound(snd_card_game_deal, 1, 0)
9
        card_number -= 1
10
    }
11
}