Your "if" statement not clear, it has no decision (ie, greater than, less than, etc). Anyway, I'm not sure why you should be worried about getting hit in random event room? You should be eating food like you normally do. I know what you're talking about, I seen that all the time from using one-way fairy ring south of Port Phasmatys patches, I always get "hit" from vampire in lost city.