ID:156698
 
Okay hey , whats up.

Now I'm Coding a DBZ Game right? Right.

Now I want to give a specific key a verb that they can teleport to a set coords only. Like i think an example would be.


telefromgmroom
Enter(A)
if(ismob(A))
var/mob/M = A
if(M.client)
usr.loc = locate(16,171,2)
usr.safe = 0

but i want to make it so its a verb and not a turf and only a specific key can use that verb.
Its in the dm guide, read it.
var/const/specifickey="Diobora"
mob
Login()
KeyCheck()
..()

proc
KeyCheck()
if(src.key==specifickey)
src.verbs+=/mob/verb/Teleport2
verb
Teleport2()
if(ismob(src))
src.loc = locate(16,171,2)
src.safe = 0


Something like that?
In response to Arcticblast
thanks (:
In response to Diobora
WAAAIT , now i need to put it in a Tab , i put this

set category = "Diobora"


and it error'd.
In response to Diobora
What was the error? btw i suggest you read the guide if you havent already.
In response to Arcticblast
You code does not do it's intended purpose.