Transferring the player within a script?

Zygoat

Trainer
Member
Joined
Dec 21, 2020
Posts
79
Age
22
I'd like to properly recreate the underground from Sinnoh in my game, but I don't know how to make the Explorer Kit transport the player to an underground map, and then transport the player back to the spot they went down there from when used underground. Does anybody know how to do this?
 

ThatWelshOne_

Eevee User
Member
Joined
Sep 29, 2020
Posts
163
I think you would do this in a similar way to how Escape Rope works. When the player uses the Explorer Kit, record their x- and y-coordinates and the map ID, then transfer them to the underground map. I'm not entirely sure how that second bit would work in practice. Do you have one underground map or a few different ones? Would the player get sent to the same position every time or is there some randomness to it? When the player wants to leave the underground, transfer them back to their original position in the overworld using the parameters you saved.
 
Last edited:
Top