image_alpha = 0.3; scr_darksize(); depth = 100000; con = 0; if (global.flag[1895] > 0) instance_destroy(); on_act = function() { snd_stop(snd_plat_act_select); var dmg = 1; var total_hp = 0; for (var i = 0; i < 3; i++) { if (global.char[i] != 0) total_hp += global.hp[global.char[i]]; } scr_iteminfo(global.item[0]); if (value > 0) dmg = ceil(value / 2); if (total_hp <= 3) dmg = 0; with (obj_plat_player) get_hurt(4, 0, 0, dmg, true); scr_destroy_platmode_act(); con = 1; sprite_index = IMAGE_FRIEND; image_xscale = -2; image_blend = c_red; x += 30; y -= 20; global.flag[1895] = 1; }; scr_configure_platmode_act(on_act, "none", "", "");