ID:142626
 
Code: mob
verb
Jump()
set category = "Battle"
for(var/turf/M as turf in T)
if(dir == "EAST")
usr.loc = locate(x+4,y+2,z)
sleep(5)
usr.loc = locate(x-4,y+2,z)
if(T.density == 1)
return
if(dir == "NORTH")
return
if(dir == "SOUTH")
return
if(dir == "WEST")
usr.loc = locate(x+4,y-2,z)
sleep(5)
usr.loc = locate(x-4,y-2,z)



Problem description: well of course it doesnt work but heres the errors : T undefined var, locate undefined proc, T.density undefined proc, invalid expression any help? also the end of the last code is supposed to have if t density = 1 then return

oops i was on my cousins key
...dir is a number, not a string... look back at your other post and see what Garthor + Kaioken mentioned

[link]
[link]
In response to GhostAnime
ok thanks but how do i make it so that after you go up then you fall downwards untill you hit something with a density of 1? also when jumping up if you hit something with a density of 1 u fall