Ie the files (amount of maps)
Overworld.dmm (75)
Shops.dmm (40)
teleport(Shops.dmi,x,y,1)//teleport to the first map in Shops.dmi
proc/teleport(file/F,var/X,var/Y,var/Z)
//the code here
ID:160774
![]() Jul 24 2008, 8:29 am
|
|
How would I teleport to a map uisng a specific filename, ie teleport to SHOPS.dmm, and when i choose the x,y,z the Z is only for that file and not for other maps
Ie the files (amount of maps) Overworld.dmm (75) Shops.dmm (40) teleport(Shops.dmi,x,y,1)//teleport to the first map in Shops.dmi |
You can really only have one map in a game at one time. If you include multiple map files, they just get added together on compile (on additional z-levels). If your first map file has 3 z levels, your 2nd map file will end up starting at z #4, etc.
A coordinate-independent solution is often more convenient, such as using locate() with conjunction with the tag var, or a type path. Note the latter isn't reliable as-is if you have multiple turfs of that type. |
put that anywhere on the shop map
is the code to change maps.