ID:830902
 
Keywords: runtimeerror
Code:
runtime error: Cannot read "Sharingan".Delay
proc name: Click (/obj/HUD/HotKeys/Slot1/Click)
usr: White Uchiha (/mob/player)
src: Slot1 (/obj/HUD/HotKeys/Slot1)
call stack:
Slot1 (/obj/HUD/HotKeys/Slot1): Click(null, "default.mapwindow", "icon-x=16;icon-y=23;left=1;scr...")


Problem description:
I keep getting this error when im trying to put the Sharingan Skillcard into a slot. Theres nothing different with the other skill card so i dunno why it keeps saying this

What is the click proc?
Code:
    Click()
if(src.Target_Required)
usr.Target()
if(usr.ntarget)
src.DelayIt(15,usr);return
if(src.TurnedOn)
src.TurnedOn=0
src.Deactivate(usr)
return
if(usr.resting||usr.meditating)
usr<<"You can't do this, you're resting or in chakra generation mode."
return
if(usr.Dead||usr.FrozenBind=="Dead"||usr.DoingPalms&&src.name!="128 Palms")
usr<<"Not now."
return
if(src.Delay>0)
usr<<output("You must wait to use this technique.","Attack");return
if(src.BunshinAble)
if(usr.KBunshinOn)
var/A=usr.controlled
usr=A
else
usr=usr


This?
I want the click proc for this /obj/HUD/HotKeys/Slot1/
Code:
        Slot1
screen_loc="1,16"
Click()
var/obj/SkillCards/A = input("Which Skillcard do you select?") in usr.LearnedJutsus + list("Cancel")
if(A=="Cancel")
return
else
if(A.Delay)
usr<<"You can't change the slot while you're on delay.";return
for(var/obj/SkillCards/C in usr.LearnedJutsus)
if(C.Slot==1)
C.Slot=null
A.Slot=1
usr<<"You set [A] to slot 1."
for(var/obj/HUD/HotKeys/Slot1/X in usr.client.screen)
X.icon=A.icon
X.icon_state=A.icon_state
What type of things are in usr.LearnedJutsus? (objects? Text?)
Idk lol

Code:
(var/obj/SkillCards/Susanoo/A in src.LearnedJutsus)


Should every jutsu have something like? With their respecitive names between skillcards and A?
So they're objects? Just checking.
Gotcha, thanks, and i got it working