Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_jandroid_soap_collider_Destroy_0

(view raw script w/o annotations or w/e)
1
if (heart_collided == true)
2
{
3
    audio_play_sound(snd_battle_item_eat, 1, 0)
4
    instance_destroy(white_id)
5
    if (global.act_number == 1)
6
        global.enemy_sparing = true
7
    else
8
        global.enemy_sparing_2 = true
9
    instance_create_depth(0, 0, -9999, obj_quote_battle_jandroid_a_mid_attack)
10
    obj_battle_enemy_attack_jandroid_garbage_cans_generator.alarm[0] += 30
11
}