if (global.flag[1360] > 0) { global.entrance = global.flag[1360]; } else if (is_real(doorEntrance)) { if (doorEntrance != -1) global.entrance = doorEntrance; } else if (is_string(doorEntrance)) { global.entrance = (ord(string_upper(doorEntrance)) - 65) + 1; } global.flag[21] = -10;