How can i use this code?

Hi all, how can i use this code for my game?
Note: Please explain with examples.

$game_player.reserve_transfer(map_id, x, y, direction)

I've moved this thread to Script Support. Thank you.

That's the code for 'transfer player', pretty much the same as the event command for transferring the player. map_id is the ID of the map to transfer to (e.g. 1 for map 1), x is the destination X coordinate for the player, y is the destination Y coordinate for the player, and direction is a number that refers to which direction the player should be facing (8 for up, 6 for right, 4 for left and 2 for down).
Why would you want to do that via a script? Why not just use the Transfer Player command?
That's the code for 'transfer player', pretty much the same as the event command for transferring the player. map_id is the ID of the map to transfer to (e.g. 1 for map 1), x is the destination X coordinate for the player, y is the destination Y coordinate for the player, and direction is a number that refers to which direction the player should be facing (8 for up, 6 for right, 4 for left and 2 for down).


Thank you so much 🙂
Why would you want to do that via a script? Why not just use the Transfer Player command?


Because i using a online system and some things is some different..

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-use-this-code.121891/