mob/var/isfish
mob/var/fishchance
mob/var/catch
mob
verb
fish(mob/M in view(3))
set name = "cast out"
set category = "Fishing"
if(M.isfish==1)
usr.fishchance=rand(1,3)
if(usr.fishchance==3)
usr<<"The fish gets away!"
else
usr<<"The fish goes for the bait!"
usr.verbs+=/mob/verb/reelin()
usr.catch="[M]"
mob
verb
reelin()
set name = "Reel in"
set category = "Fishing"
usr.catch(step_towards(usr))
client
North()
if(usr.fishchance==1||usr.fishchance==2)
step(usr,NORTH)
step(usr.catch,NORTH)
Problem description:
well for some reason the usr.catch(step_towards(usr)) line
gets 2 errors and i dont get what is wrong with it.
errors:
fishing.dm:24:error:usr.catch:undefined proc
fishing.dm:24:error:step_towards :expected 2 arguments(found 1).