if (instance_exists(obj_mainchara)) obj_mainchara.battlemode = 0;