Through/Above Characters & Event Touch

Is there a way to allow an event with both "Through" turned on and its priority set to "Above Characters" to trigger when colliding with the player?

For example, I have a bat enemy that flies around in circles in a cave, triggering a battle on contact with the player:

1686888998511.png


"Through" and "Above Characters" needs to be on so that the enemy flies above all other objects on the map, but it also causes it to bypass the player, preventing the battle from triggering.

Is there a script/plugin or some other workaround I could use to get the result I want?
You can find information about this by searching for enemy proximity. You can use variables to track the X & Y coordinates of both the Event (enemy) and the player. You can have these coordinates tracked with a parallel event and when the coordinates are equal to each other, you can trigger the combat.

So if you look for information on proximity triggers and tracking coordinates, that should probably help.

I have a couple of tutorials about proximity triggers and other tutorials that deal with tracking coordinates with variables.

I hope this helps.
You can find information about this by searching for enemy proximity. You can use variables to track the X & Y coordinates of both the Event (enemy) and the player. You can have these coordinates tracked with a parallel event and when the coordinates are equal to each other, you can trigger the combat.

So if you look for information on proximity triggers and tracking coordinates, that should probably help.

I have a couple of tutorials about proximity triggers and other tutorials that deal with tracking coordinates with variables.

I hope this helps.
Idk if I'm doing this right, but I tried setting up an autorun process which creates variables based on the X/Y coordinates of the player and enemy, then a separate parallel process which checks to see if the enemy's X/Y coordinates = the player's X/Y coordinates and process a battle if true. It doesn't seem to be working:

◆Control Variables:#0001 Player_X = Map X of Player ◆Control Variables:#0002 Player_Y = Map Y of Player ◆Control Variables:#0003 Treel_X = Map X of EV021 ◆Control Variables:#0004 Treel_Y = Map Y of EV021 ◆Erase Event

◆If:Treel_X = Player_X ◆If:Treel_Y = Player_Y ◆Battle Processing:Treel :If Win ◆Erase Event ◆ :If Escape ◆Erase Event ◆ :End ◆ :End ◆ :End

Edit: Nvm, I combined the two events into one parallel process and it's working now lol
If you want to Safe some Code, you could use the Eventcommand Get Location Info.

Get Location Info ; VarX = Event Id on Player Position.

Conditional Branch (If) VarX Equals Id of your Monster Event? Start a Battle

Original thread: https://forums.rpgmakerweb.com/threads/through-above-characters-event-touch.158373/