ID:176949
 

I need help ! I don't understand z levels and how to teleport mobs between them!
Try using the locate() proc.
turf
Enter()
usr.loc = locate(x,y,z)
Z is just like X and Y, except in another direction. What is there not to understand?
In response to Delita12345
I have :

area
to_plain
Entered()
loc=locate(1,1,1)
I've tried assigning z levels in the maps but those don't work
In response to Delita12345
Delita12345 wrote:
Try using the locate() proc.
turf
Enter()
usr.loc = locate(x,y,z)

NO NO NO!
Do not put usr in Enter().

Nor will this proc do anything significant at all, nor does it answer the question.

Lummox JR
In response to Lummox JR
I"m asking how would I assign z levels to maps?!
In response to Mechanios
Yes.
In response to Mechanios
First of all, src is the area. Second of all, maps are automatically compiled into a single map file. If oyu wish to retain your sanity, then either A: put them all in one map file, or B: assign tags to turfs (right click on them, properties) and then you can use locate("tagname") to find that specific turf.
In response to Xooxer
Xooxer wrote:
Yes.


????
In response to Mechanios
sorry about before, it was just a suggestion.
anyways, if you want to give your maps different z levels, on the map editor in the menu at the top, go to options, set map size, and give it as many z levels as you need.
In response to Garthor
O.o okay i'll do that !
In response to Delita12345
i've tried that but it didn't work ... I out z level 1 and z level 2 and z level 3 (on 3 different maps) but it didn't work
In response to Mechanios
Also, the Entered() proc, and related procs like Enter(), Exit(), etc. are all wrong in the reference. The correct format is:

Entered(atom/A)
if(ismob(A))
var/mob/M = A
M.loc = locate("tag")
In response to Garthor
so entered()
enter() do nothing?
In response to Mechanios
Mechanios wrote:
I"m asking how would I assign z levels to maps?!

I answered your question, yes.

~X
In response to Mechanios
No, the fact that they use usr in them is worng. They all work correctly, unless if you put usr in them. You should never use usr unless if you actually know what usr is.
In response to Mechanios
Mechanios wrote:
so entered()
enter() do nothing?

Only if you define them.

~X
In response to Garthor
ohh okay I starting to understand so I assign z levels in a map when I first make them then If I want to arp between them I put their z level ans x,y and i'm there
In response to Mechanios
okay here is my code :


area
teletoSlimecity2
Entered(mob/M)
M.loc = locate(1,1,1)
teletoSlimecity1
Entered(mob/M)
M.loc = locate(1,1,1)
ARGH it didn't work! I'll just use tags from now on
Page: 1 2