if (state == 1) { depth = 777777; draw_sprite_ext(spr_battleborder, 0, 0, 0, 1, 1, 0, c_white, myalpha * show_border); }