ID:167227
 
Is there a way to link 2 different mapfiles ( And not 2 different z levels because the last times i posted this this is all i got ) together, Can you post it please ,and please do not give me "The Code" crap because that dosent help much unless its in there ( And it isnt ).
* I wrote all of that beacuse of all the super crap that i had to deal with which prolonged sevral of my games *
Edge657123 wrote:
Is there a way to link 2 different mapfiles ( And not 2 different z levels because the last times i posted this this is all i got ) together, Can you post it please ,and please do not give me "The Code" crap because that dosent help much unless its in there ( And it isnt ).

2 different map files = 2 different z levels.

Lummox JR
There is no "the code".

Go look at the "quest for the code" to get an idea of what happens when you try to put random bits of code together.

One map file:

z=1

and you move a player there by

usr.loc = locate(1,1,1)

or

usr.Move(locate(1,1,1))

In a verb you use usr, but you use src otherwise.

When you add a second map file the maps begin to arrange themselves aplhabetically, so if your second map file is "Dungeon" while your first one is "Clocktower", it will come after the first one, and so on. Dungeon becomes the second z level, so to access it you move your dude to:

locate(1,1,2)

If you're trying to put two maps together in the sence that there isn't enough room in the first one, very simply look through the tabs at the top of the map maker and find the one that says "set map size", this is your ticket to greatness. Expand x or y depending on which direction you need to go in, and you'll now have enough room to copy and past your other map into it.
In response to Rockinawsome
Now THAT is helping...
More useful than

Lummox JR wrote:
2 different map files = 2 different z levels.

Seeing as you explained HOW and didn't just say "because..."
In response to WallyB
Well, anybody with a modicum of BYOND coding experience knows how to navigate z-levels. I think Lummox assumed that he's got at least a little knowledge.
In response to WallyB
I think it explains itself somewhat. If two maps = two z levels, the maps most obviously collide and compile to a single instance.
In response to CaptFalcon33035
****** *** **** ***** ***** *** **** **** ***** *** *****
Well i said do not give me a way to link diffrent map z levels,
I told you dont do that you **** ignaramuus.....*calms down*

i will give you an example ({ I want a person to use a verb and be teleported from luxomor+MJ_foreveer.dmp to ANOTHER map file (!!!!!!NOT THE Z LEVEL!!!!!!) up_yours_luxumor.dmp })
In response to Edge657123
What you need is some way to tell one map file from another. An easy way to do that is by using the tag variable of a turf. The entrance turf of the mapfile the player is being sent to can have its tag variable equal something like "map2_entrance1". Then you can use locate("map2_entrance1") to find that turf, and then send the player to it. You can change the tag variable by either making a new type of turf with it, or by just changing it in the map editor.
In response to Edge657123
What you don't realize, is that two map files compress at compile time, forming new z levels. Let me give you a full example.

You have "Map1.dmp" that has 1 z level.

You have "Map2.dmp" that has 1 z level also.

If you use locate(1,1,2), it will transport you to the coordinates x 1, y 1, on "Map2.dmp" because it's z level compressed with the first map to form one map.

If you want help, don't yell at people when they give you the correct information.

-Doh
In response to XxDohxX
UMmmm the dote collide when you comple ive seen many source codes with mltiple map files ,

i got mad t lumxumor because hes told me that already and it didnt help much.

So what your saying is that if i create a object and lace it on one map and say
"usr.loc = /obj/tele_item/map2_entrance"
In response to Edge657123
I didn't mean they ACTUALLY visually collide, internally z level 2 is the first z level on the second map as long as the first map has 1 z level.

If the first map has 2 z levels and the second have 2 z levels, then that means to access the second z level on the second map, you would use loc = locate(1,1,4).

-Doh
In response to PirateHead
But Lummox was not very discript in how he explained how they worked. And never assume someone knows more about something than you know that they know!