obj
Kunailog
icon = 'Objects.dmi'
icon_state = "kunailog"
density = 1
verb
Kunai_Throw()
set name = "Kunai Throw"
set category = "Training"
set src in oview(1)
if(usr.resting == 1)
usr<<"Not while resting."
if(usr.resting == 0)
if(usr.loghits >= 350)
usr.stamina -= rand(1,8)
usr.exp += rand(5,20)
usr.loghits = 0
var/obj/kunai/K = new
K.loc = usr.loc
walk(K,src,1)
del(K)
usr << "The kunai log has been targeted too many times and has broken."
usr.Levelup()
else
if(usr.loghits <=350)
if(usr.stamina >= 0)
usr.stamina -= rand(1,8)
usr.exp += rand(5,20)
usr.loghits += 1
var/obj/kunai/K = new
K.loc = usr.loc
walk(K,src,1)
del(K)
usr.Levelup()
else
if(usr.stamina <= 0)
usr << "You are out of stamina."
return
Problem description:
okay, I'm trying to make the kunai appear and go towards the kunai log right. I have the icons, just that I don't know how to make it appear on screen and go towards the kunai log. I know there is something wrong here, but I don't know what is. Any added suggestion or anything else would be great. Thanks.
I am just giving an example, put it in your code how you want