mob//defines the npc as a turf instead of object etc
Yardrat
Yardrat
npc = 1//wat the turfs name is
icon = 'turfs.dmi'//the icon
icon_state = "yardrat"
density = 1//makes the npc so u cant walk through it
verb//makes a verb
Land_On_Yardrat()//name of the verb
set src in oview(1)//sets it so the verb can only b used when npc is one tile awau
switch(alert("Do you want to land on Yardrat?","Land","Yes","No"))//ask if he/she wants to land
if("Yes")//if they say yes
usr.overlays -= /obj/Pod//make there icon this
usr.overlays -= 'invis.dmi'
usr.loc=locate(51,104,4)
usr.icon_state = ""
npc = 0//sends to this location
usr << "<B>You land on the Planet Yardrat"//wat it says to the usr
if("No")//if the say no
return//return back to the screen
Destroy()
set src in oview(1)
switch(alert("Do you want to attempt to blow up Yardrat?","Destroy","Yes","No"))
if("Yes")
if(usr.pl >= 1000000)
usr << "[usr]: aaaAAAAGGHHHH!!!!!!!!!!!!!!!"
for(var/mob/M in world)
if(M.loc=location = ,,2)
M.pl == 0
M.Die()
Problem description:
Is there a way I can make the location work for DM code because ,,2 obviously wont work so im not even gonna attempt to compile it,but is there a way i can put it in fir x and y that it wont matter what number it is but the z value must be 2 or 3 or any speccfic munber I specify?
if(M.z == 1)
x,y,and z are all separate and built in variables.