if (event > -1) { if (global.event[event] > 0 && state != 10) instance_destroy() }