Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_attack_ace_dealing_controller_Alarm_0

(view raw script w/o annotations or w/e)
1
var inactive_card = irandom_range(1, 8)
2
with (obj_attack_ace_dealing_cards)
3
{
4
    if (card_id != inactive_card)
5
        event_perform(ev_alarm, 0)
6
}
7
if (attack_number <= 0)
8
    instance_destroy()
9
attack_number--