ID:144454
 
Code:
//kagemane
mob/nara/verb/kagemane()
set name="Kagemane No Jutsu"
set category="Jutsus"
if(usr.Kshibari)
for(var/obj/shibari/K in world)
if(K.owner==usr)
del(K)
usr.Kshibari=0
usr.Frozen=0
usr.client.eye=usr
for(var/obj/shibaritrail/T in world)
if(T.owner==usr)
del(T)
usr.Kshibari=0
usr.Frozen=0
usr.client.eye=usr
usr.Frozen=0
usr.Kshibari=0
usr.client.eye=usr
return
usr.Handseals()
if(usr.resting||usr.meditating||usr.firing||!usr.handseals||usr.chakra<=1)return
usr.Frozen=1
usr.Kshibari=1
view()<<"<font size=1><font face=verdana><b><font color=white>[usr]<font color=green> Says: Kagemane No Jutsu!"
for(var/mob/M in oview(8))
var/obj/shibari/K = new /obj/shibari
K.loc = usr.loc
K.Move_Delay = 1.7
K.iskagemane=1
K.gen = usr.gen
K.owner = usr
K.icon='kagemane.dmi'
K.icon_state="head"
usr.client.eye=K.loc

/click()
mob/Click()
var/turf/A
if(usr.Nara&&usr.Kshibari)
for(var/obj/shibari/O)
if(O.owner==usr&&usr.client.eye==O.loc)
walk_towards(O,A)
else ..()


Problem description:
Now, heres the problem, Kagemane no jutsu works, except one thing, i cannot get it to move! the system works(Well, is supposed to >.>) like this: You do jutsu, you click, kagemane trail GOES TO the place where you clicked. But, when i click, nothing happens, someone help me please.

wouldnt it be turf/Click()
also add this to your code.#define DEBUG
if you get a error in game itll define what line its on ect.
~Grand~
In response to KillerGrand
i have Debug enabled, you can enable it through the coding, and there wasent a runtime error O_o, and im going to try turf/Click right now

[edit]
Turf/click() does NOT work
Tell me what happens ill like to know.
In response to Axerob
Youre telling O to walk to A but you did NOT defined what A was...

Maybe you should make it go to src (the person clicked) or define A.

- GhostAnime
In response to GhostAnime
i also want it to do turfs too =\
In response to Axerob
What I am is saying is that, according to your mob/Click() and the reason why it wasn't moving is that you made a variable, var/turf/A, but you did NOT refer anything to A, thus A=null and that's why it won't walk, because you're telling O to walk to no where.

if you want both /turf and /mob Click(0 together in one neat package, I recomand you editing atom/Click()

- GhostAnime
In response to GhostAnime
ok, thats all fixed, but another problem o_o

        var/obj/shibari/K = new /obj/shibari
K.loc = usr.loc
K.Move_Delay = 1.7
K.iskagemane=1
K.gen = usr.gen
K.owner = usr
K.icon='kagemane.dmi'
K.icon_state="head"
usr.client.eye=K.loc

The client eye dosent shift the loc of K, is it because K is not a client?
In response to Axerob
well duh it aitn gonan work <.< you got K.loc = usr.loc <.< itll stay on the usr until u change that.
In response to KillerGrand
What KG said. If you want the eye to follow the K, than take off the ".loc" from "K.loc".

( a slight correction for KG: It'll stay at the location of where the usr fist stood at the creation; if the usr moved after that, the eye won't move).

- GhostAnime