Battles using Events

I'm trying to create a battle system using events. However, in order to do this I wound need 2 event pages to be active (one that uses the action button to attack the npc, and another that attacks the player). Is it possible to do this or should I try something else? any comment would be nice, I just find the game's default battle system kind of boring.
Tsukihime wrote a script for parallel event pages


http://www.himeworks.com/2013/03/06/event-parallel-pages/
or you can probably do it via parallel process events...


like if the event that needs 2 pages is the enemy, just make it have the player attacks enemy behavior then handle the enemy attacks player part using parallel process events or do the reverse
But if you had 10 enemies on the map, that'd require 10 parallel process events, or a very large parallel process event that handles 10 enemies.
Tsukihime wrote a script for parallel event pages

http://www.himeworks.com/2013/03/06/event-parallel-pages/
Shaz, I tried that script and it just kept repeating. Just for clarification, one of the even page when the action button is hit shows the animation "Slash Physical" on the event and adds 100 to a variable that represents the enemy's health. When the variable gets to 4200, the event changes from the enemy to a pile of bones. the other page is set for event touch and shows "Slash Physical" on the player and subtracts 100 health from the player until game over. However, this does not work because if the player gets close enough to the event, they get damaged. Do you have any suggestion?
@Shaz - if you go the parallel handles the monster behavior way, yes it will need a large parallel process event... if you go the reverse though, it won't be as large...


@OP - you can maybe check if the player is standing on a tile directly in front of the event, then do damage if yes... or just make the enemy face the player when the touch event triggers, so that it will look valid... though that means you cannot continuously damage the player, so you might just wanna make it a parallel process event page too, which checks the position of the player and the event, if the player is within range, you make the enemy face the player then do the attack

Original thread: https://forums.rpgmakerweb.com/threads/battles-using-events.25790/