Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_cactus_damager_Create_0

(view raw script w/o annotations or w/e)
1
global.current_hp_self = clamp((global.current_hp_self - 5), 1, 999)
2
audio_play_sound(snd_hurt, 20, false)
3
scr_screenshake_battle
scr_screenshake_battle

function scr_screenshake_battle() //gml_Script_scr_screenshake_battle { instance_destroy(obj_screenshake_battle) var screenshake = instance_create(0, 0, obj_screenshake_battle) battle_screenshake_duration = argument[0] battle_screenshake_intensity = argument[1] battle_screenshake_dec = battle_screenshake_intensity / battle_screenshake_duration }
(12, 6)