ID:177216
 
Is it at all possible to move a player from one map to another??,
-Spoon
In response to Air Mapster
that doesnt help i wanna change maps not levels!
In response to Spoon
Spoon wrote:
that doesnt help i wanna change maps not levels!

Same thing, actually.
Different map files are compiled into the game as different z levels. If you have one map that's 100x100x3, and another that's 50x50x4, then the overall map is 100x100x7 and the 50x50x4 one might be fromn 1,1,4 to 50,50,7. (It depends on the order they're compiled in.)
A quick way to find the z level of your map is to put a tag on the 1,1,1 turf of each map, matching the map's name (like "map1.dmp". Then use this code:
proc/GetMapZ(mapname)
var/turf/T = locate(mapname)
return T?(T.z):0
That will find the map for you, returning the z value of its lowest level.

Lummox JR
In response to Lummox JR
to teleport, it would go something like this.

turf/portal
icon = 'portal.dmi'
Entered(mob/M)
M.loc = locate(number,number,number)//Where number is written you would write the 3 coordinates for where you want to teleport to.
..()
In response to The Conjuror
The Conjuror wrote:
to teleport, it would go something like this.

turf/portal
icon = 'portal.dmi'
Entered(mob/M)
M.loc = locate(number,number,number)//Where number is written you would write the 3 coordinates for where you want to teleport to.
..()

Bear in mind that saying M is a mob doesn't necessarily mean it is one. The first argument to Entered() will be an atom/movable, and that's all you can rely on. It may be an obj, not a mob. The code you've done will work because you're not using anything special that a mob has that atom/movable doesn't, but it will teleport objs as well as mobs.

Lummox JR