I've been searching online for days trying to make this work. I feel like I have some pieces of the puzzle, but not all.
The setup is I have a region-based common event that allows a player to call a taxi while standing within two tiles of a road. Currently, the way I have the pick-up set up is super janky. I have an event that is triggered by a variable when the player calls. It becomes visible/tangible and proceeds FROM a very specific point on the map TO a very specific point on the map. It works perfectly, but the map is larger than I can realistically expect my move route to work as intended. I have been trying to find something that would relocate the event to a position relative to where the player is when they call the taxi.
(Full disclosure, I keep finding references to Yanfly/VisuStella plugins, but they aren't compatible with the ABS plugin I'm using. So that seems to send me out searching for roads less traveled.)
My assumption is this would all happen in the context of a common event. I found $gamePlayer.x and $gamePlayer.y to pull my player's location on the script call spreadsheet. From there I can do a set event location, but it would need to somehow know to calculate about 10 tiles right of the player and one or two tiles down, depending on where the player is standing on the region I set up, to materialize off-screen. That's the first part I can't figure out.
Once the event is in the right spot, I'd like to make it so the event itself follows a different region (to keep it in the correct lane) and stops directly in front of the player. I know how to make an event just move toward a player, but keeping it on a region ID has eluded me. I can do without that piece of the puzzle though, just getting it within a tile or two by setting a straight move route if I can get the event oriented correctly.
Thanks!
The setup is I have a region-based common event that allows a player to call a taxi while standing within two tiles of a road. Currently, the way I have the pick-up set up is super janky. I have an event that is triggered by a variable when the player calls. It becomes visible/tangible and proceeds FROM a very specific point on the map TO a very specific point on the map. It works perfectly, but the map is larger than I can realistically expect my move route to work as intended. I have been trying to find something that would relocate the event to a position relative to where the player is when they call the taxi.
(Full disclosure, I keep finding references to Yanfly/VisuStella plugins, but they aren't compatible with the ABS plugin I'm using. So that seems to send me out searching for roads less traveled.)
My assumption is this would all happen in the context of a common event. I found $gamePlayer.x and $gamePlayer.y to pull my player's location on the script call spreadsheet. From there I can do a set event location, but it would need to somehow know to calculate about 10 tiles right of the player and one or two tiles down, depending on where the player is standing on the region I set up, to materialize off-screen. That's the first part I can't figure out.
Once the event is in the right spot, I'd like to make it so the event itself follows a different region (to keep it in the correct lane) and stops directly in front of the player. I know how to make an event just move toward a player, but keeping it on a region ID has eluded me. I can do without that piece of the puzzle though, just getting it within a tile or two by setting a straight move route if I can get the event oriented correctly.
Thanks!