obj
Hud
Unlockable
Learn_Techniques
icon_state = "learn tech"
Click()
var/learn = input("Do you want to learn all the techniques?\n- This is just temporary until all techniques are done","Learn Techniques") in list("Yes","No")
if(learn == "No") return
else
usr.techniques = initial(usr.techniques)
var/list/techs = typesof(/obj/Technique/)
techs -= /obj/Technique/
for(var/obj/Technique/T in techs)
var/A = new T
usr.techniques += A
..()
Problem description: Well, for testing purpose I want it so you can learn every technique defined as obj/Technique, but I keep getting runtime errors such as "usr.techniques += Fly; invalid" and i've tried alternate ways but it seems it just ends up clearing the techniques list.