proc name: EquipSkill (/obj/Skillcards/proc/EquipSkill)
source file: Hotkeys.dm,344
usr: Ataos (/mob)
src: Key0 (/obj/Skillcards/Skills/Run)
usr.loc: the trilhos (103,110,1) (/turf/Castle/Walls/Complet/trilhos)
src.loc: Ataos (/mob)
call stack:
Key0 (/obj/Skillcards/Skills/Run): EquipSkill("Key0")
Ataos (/mob): BuildHotbar()
Ataos (/mob): loadprocess()
the loadbutton (/obj/hud/Creationhud/loadbutton): Click(null, "default.map1", "icon-x=28;icon-y=4;left=1;scre..."
proc/EquipSkill(obj/Slot)
var/obj/Skillcards/Skills/t = locate(/obj/Skillcards/Skills) in usr.contents
if(!t) return
if(Slot)
src.Slot1 = Slot.name
src.name = Slot.name
usr.client.screen += src
src.screen_loc=Slot.screen_loc
src.equippedthing = 1
usr.SetKey(Slot.name,src)
mob/proc
BuildHotbar()
for(var/obj/Skillcards/Skills/Z in src.contents)
if(Z.equippedthing==1)
Z.EquipSkill(Z.Slot1)
Problem description: First I was loading some skills then I saw the log and saw tons of erro and tried to change some things, now I cant load any skills, why is this hapenning?
Just glancing through your code, your BuildHotbar proc is passing "Z.Slot1" into your EquipSkill proc (which Z is of the /obj/Skillcards/Skills type), and then your EquipSkill proc sets Z.Slot1's Slot1 variable to Z.Slot1's name. I'm fairly certain this isn't intended logic. I don't know what typing (if any) your Slot1 variable has in your /obj/Skillcards/Skills class, so I still can't be 100% positive.