Basically how do i go about having an event (enemy sprite) do a conditional check to see if another event (overgrown vegetation event) is present at its current location so that it can react differently such a slower speed. I know how to do a conditional branch but how do I if the (overgrown vegetation event) has a variable x/y location depending where the player puts it. Basically i have it where the player can create a overgrown area in a specific region Id anywhere on any map. And moving enemy sprites. I d like to be able to condition the enemy sprites to check if the event is present.
Event affecting other Events
RPG Maker MZ SupportPlayers don't put events on the map, so might help if you explain what you're doing and how you're doing it. some event spawning plugin maybe? That could cause a lot of lag.
the best way with eventing would probably to use get location info BEFORE moving the enemy event on the position, and remember the result.
You'll have to use the event-id result, and then compare the event ID that you got.
However the get location info can only get one event ID, which is why it has to be used before moving on that position.
if you can't check before the move, then you'll have to use scripts - there is one script command that returns an array of all events at a given position, but I don't know how it is spelled for MZ.
You'll have to use the event-id result, and then compare the event ID that you got.
However the get location info can only get one event ID, which is why it has to be used before moving on that position.
if you can't check before the move, then you'll have to use scripts - there is one script command that returns an array of all events at a given position, but I don't know how it is spelled for MZ.
I am using KageDesu pocket events plugin. It spawns a premade specfied event that can be placed in a specified region id.
Is it possible to instead have the event change the region id? If that is possible i would be able to conditonal branch based on region id and make it significantly less difficult.
not by default, you would need to find a plugin that gives that functionality.
Original thread: https://forums.rpgmakerweb.com/threads/event-affecting-other-events.142186/