ID:1889356
 
(See the best response by Ter13.)
Code:
turf
Portal
verb
EnterPortal()
var/dest = LocateInLevel(/turf/Portal,z-1)
usr.Move(dest)
ExitPortal()
var/dest = LocateInLevel(/turf/Portal,z+1)
usr.Move(dest)


Problem description: Okay. I have some working portals that transfer you from one Z-plane to another. The code for this is shown above. It works perfectly fine for the defined task.

It it possible to make them teleport people to entirely different map files, though? Is it possible to code in portals that teleport you to different map files at all? If so, could someone show me an example of how it might be done?

I've tried experimenting myself but I haven't come up with anything that actually works.
Best response
If you have more than one map in your project, they will be merged into a single map during compilation as higher z levels.
Thank you very much =)
I had no idea.
Pro tip: Add a tag to one of the turfs on each map, and you can look it up with locate().