obj
Spar_Partner
icon='turf.dmi'
icon_state="spar"
density = 1
name = "Sparring Partner"
verb
Train()
set category = "Temp"
set src in oview (1)
var/mob/players/M
for(M in get_step(src,src.dir))
if(!M.training)
if(M.level<=4)
M << "You begin to spar."
M.training = 1
walk(M,EAST,Lag=10)
walk(src,WEST,Lag=10)
walk(M,WEST,Lag=10)
walk(src,EAST,Lag=10)
walk(M,WEST,Lag=10)
walk(src,EAST,Lag=10)
walk(M,EAST,Lag=10)
walk(src,WEST,Lag=10)
walk(M,SOUTH,Lag=10)
walk(src,NORTH,Lag=10)
walk(M,NORTH,Lag=10)
walk(src,SOUTH,Lag=10)
walk(M,0)
walk(src,0)
M << "Finished."
M.exp += 1
M.CheckLevel()
M.training = 0
else
M << "You are too high leveled to train with this!"
else
M << "You're already training!"
/*
Objects.dm:17:error:walk :expected 2 to 3 arguments (found 1).
*/
Problem description: I'm not sure if I'm using walk() right, but I'm using the format straight out of the Reference. What am I doing wrong?
with this:
proc/LevelUp( mob/players/M )