obj/Key
var
GX
GY
GZ
BlueKey
GX = 5
GY = 9
GZ = 2
RedKey
GX = 19
GY = 22
GZ = 3
mob
verb
Use()
var/k = /obj/Key/ in usr.contents
var/gotoplace = input("Where to?") in list(k in usr.contents)
switch(gotoplace)
if(k)
usr.Move(locate(k.GX,k.GY,k.GZ))
ID:270113
Jan 10 2006, 3:06 pm
|
|
How would I make it so if you have a certain key in your invintory, you warp to a certain place?
|
In response to Evidence
|
|
You can't set the category to null, because then it won't appear anywhere. You won't be able to use it. Just leave it blank so it appear in commands as the default. Also, you can do this to warp them.
usr.loc = locate(x,y,z) //set the locs of x, y , z
|
Dead_Demon wrote:
How would I make it so if you have a certain key in your invintory, you warp to a certain place? > obj/Key obj/Key I think that should work. |
In response to Pyro_dragons
|
|
you right click the key to use the verb..
|
In response to Evidence
|
|
I was makin keys like in DWM2.
|
The 'set category = null' is just really so it doesnt appear in the defualt Commands or something.