obj/techs
Teleport
icon='Techs.dmi'
icon_state="IT"
name = "Teleport"
Click()
usr.Teleport()
mob/verb/Teleport(mob/M in world)
set name="Teleport"
set hidden = 1
if(M==usr)return
if(M.block)return //Line 30
usr.loc=locate(M.x,M.y-1,M.z)
usr<<"You Teleport to [M]"
I get the runtime:
runtime error: Cannot read null.block
verb name: Teleport (/mob/verb/Teleport)
source file: Techs.dm,30
usr: Jiskuha (/mob)
src: Jiskuha (/mob)
call stack:
Jiskuha (/mob): Teleport(null)
Teleport (/obj/techs/Teleport): Click("Techniques")
Any help?
~>Jiskuha
you might have to sort the tabs out ^_^ (this is untested)