Eventing - Board Game styled

So I have a common event that has the player roll a die, which tells them how many spaces they move. There is a loop where the player moves straight forward, subtracting one from the "die" variable every time it does. It works fine.



Here's the problem. I can't get the player to turn.


On the spaces where there are turns, I have placed an event that will turn the player. The problem is, events won't activate if the player walks into/over them via a move route - only if you are actually controlling the player. (I got that from a thread with someone who has the same problem... But the solution doesn't work with MV due to the language change.)


What can I do to allow the game to detect the turn-direction spaces while the player is moving?
Instead of placing events at the spots where the player should turn, simply calculate yourself where that spot is, and create a conditional branch accordingly.


You say you have a common event that forced the player to more one tile forward. Create another common event, which gets called in your first common event right after the player has moved 1 square.


In this common event, place the player's X and Y coordinates into 2 variables. Variable > set > game data > character > player > Map X/Y.


Click the tile on your map where the player can turn, note the coordinates at the bottom right of your map. Let's say it's 10,3. 10 is the X, 3 is the Y. If you have multiple parts of the map where the player can turn, you have to record these coordinates as well.


Back to the common event. Create a conditional branch that checks if variable Player X is 10, then create another conditional branch within the previous one, but have this one check if variable Player Y is 3. If both true, this means the player is currently standing on a tile where you can turn. Have them turn to whatever direction.


Make more conditional branches for more tiles.


Screenshot:


View attachment 39191

Original thread: https://forums.rpgmakerweb.com/threads/eventing-board-game-styled.62786/