Once-off gag enemy

I want there to be a secret gag enemy in my game which can be found anywhere in the map but once you've found him you cannot find him again. 

I've tried setting everything else's encounter rate to 40 and this enemy's to 1 which seemed to work for a while but now he's popping up all over the place. And also I don't know how to make it so that once you've discovered him he won't appear ever again.
Use encounter conditions to prevent an enemy or troop from appearing


http://himeworks.wordpress.com/2013/05/17/encounter-conditions/


You can control the condition based on a switch, for example.
Thank you 🙂 This looks like just what I need
usually one-time enemies are evented, not a random encounter. To introduce conditions into random encounters you'll need a script like the one from Tsukihime.


If you have problems with the script, simply make an event with a battle processing command for that enemy, and use switches to turn it off after winning.

Original thread: https://forums.rpgmakerweb.com/threads/once-off-gag-enemy.22996/