Okay so here's the deal, I'm trying to create a thing similar to Dragon Quest 3-4's Return spell/Wyvern Wing, and so far it works great...except when the player is in a vehicle. Specifically, the vehicle teleports with the player, which is expected. However, the problem arises when I try to eject the player from the vehicle prior to teleport:
- The get on/off vehicle event command, as well as $gamePlayer.getOffVehicle() only work if the normal requirements for leaving a vehicle are met. This makes them totally worthless if used in the middle of the ocean, for example.
- I found I can forcibly remove the player from the vehicle with $gamePlayer._vehicleGettingOff = true however that has its own problems: The boat still follows the player even though I'm explicitly setting that value before teleporting the player, and seems to override any zone-specific settings that set the boat in a specific location. As for the airship, it doesn't even work (movement is disabled until I set _vehicleGettingOff back to false. Of the 3, only the ship is properly abandoned in the water (allowing me to set its location afterward when necessary)
- As item 2 suggests, I'm probably overthinking this and there's probably a better way to eject the player prior to teleporting them, but I don't know what it is. I don't want to prevent it from being used in the boat/airship, but I might end up having to resort to that if I can't get this sorted out.