Depending on what engine you are using, Victor Saint had a script for Ace that does something of the sort:
http://victorscripts.wordpress.com/rpg-mak...ap-turn-battle/In the video, the enemies are already present, but I imagine you'd be able to create events to have the enemies appear if you wanted, although something like this would probably work better for non-random encounters.