As it is now, it's possible for certain triggers to be activated when the player is in a square they're not supposed to be in, which screws up the game.
Is there a way to prevent Below Player events that trigger on Player Touch from being activated with the action button from an adjacent square?
RPG Maker MV SupportHmm... I can't replicate what your talking about, for me player touch & below only events only activate when the player steps on them.. which is how it should be
...for me pressing the action button doesn't do anything on the square or on adjacent squares
Can you share screenshots or video?
This is what it looks like in the editor...
And this is the event itself.
I don't see anything wrong with the events themselves. Maybe your tileset is the problem? See if the tile you are using is marked as a "counter" in the database. This would explain why you can activate it with the action button.
If that isn't the problem, try setting it to "event touch" if it doesn't work, then maybe some other event is interfering with this one and changing its location.
What is on Eventpage 2?
Highest Eventpage Number fulfilling its Page Conditions is getting used as active Eventpage.
So i guess the wrong Eventpage is maybe active and got the wrong settings?
Highest Eventpage Number fulfilling its Page Conditions is getting used as active Eventpage.
So i guess the wrong Eventpage is maybe active and got the wrong settings?
you can try to change this.
hope I have understood
Ok no Page Condition on Page 2, that means Page 1 will never run once in your Game.
But Page 2 will always be the one used in case the Event is somehow triggered.
Please Post pictures of the whole Eventpage, i wanted to see if Page 2 is on "Same as Characters".
That would explain why it triggers from the tile next to it and you would just need to change it to "below characters"
But Page 2 will always be the one used in case the Event is somehow triggered.
Please Post pictures of the whole Eventpage, i wanted to see if Page 2 is on "Same as Characters".
That would explain why it triggers from the tile next to it and you would just need to change it to "below characters"
Warning!
I don't need the following plugin to make it work normally.
Check any nearby events that might be triggering the event at the wrong moment.
I don't need the following plugin to make it work normally.
Check any nearby events that might be triggering the event at the wrong moment.
I'm not used to depend on eventing to solve issues so I came up with this little fix for your issue.
Please read the instructions to learn about the script calls so you can use them in a conditional branch as a script condition.
JavaScript:
//=============================
// KTouch4SameXY.js
//=============================
/*:
* @plugindesc Check if current event's coordinates are the same as the player's.
* @author Kyonides Arkanthes
* @help Date: 2023-01-29
* This plugin prevents the Player Touch trigger from executing if the player
* is still 1 tile away from a given event.
*
* Script Calls:
*
* this.SameXYCoords()
* this.NotSameXYCoords()
*/
//=============================
Game_Interpreter.prototype.SameXYCoords = function() {
let eventID = this.eventId();
let event = $gameMap.event(eventID);
return event.x == $gamePlayer.x && event.y == $gamePlayer.y;
};
Game_Interpreter.prototype.NotSameXYCoords = function() {
return !this.SameXYCoords();
};
It works! Thanks! Now to run through every step-on event in the game and add this... but it'll be worth it. ^__^;