DblClick(loca,ctrl,para)
if(findtext(para,"right=1"))
text_command += "r"
if(findtext(para,"left=1"))
text_command += "l"
if(text_command == "l")
usr << browse(info,"window=info")
if(text_command == "r")
usr.learned_skills.Add(src)
usr.lrn_skll.Remove(src)
usr.learned_a_skill ++
usr.skill_points --
usr << "You have learned [name]."
if(shyunpo)
usr.shyunpo_learn = 1
text_command = "
Problem description:
I have this code into the DblClick proc for a group of objects. I have it setup where I will double click the obj in a custom panel, but I just get this error:
runtime error: undefined proc or verb /obj/skillcards/shyunpo/Add().
proc name: DblClick (/obj/skillcards/DblClick)
usr: SDfsdf (/mob/characters)
src: Shyunpo (/obj/skillcards/shyunpo)
call stack:
Shyunpo (/obj/skillcards/shyunpo): DblClick("Learn", "infowindow.info", "right=1")
I know it's being caused by the lists learned_skills and lrn_skll, but I don't know why.
Also: It worked when I had the lists setup in var form. Like this..
atom/var/lrn_skll[50]
atom/var/learned_skills[50]
However, when they were shown in the tab, the new objects would be all the way at the bottom and you would need to scroll down to seem them. Now I have them like this..
mob/var/list/lrn_skll = list()
mob/var/list/learned_skills = list()