ID:141943
 
Ok before someone tells me to search i have search and for some reason I cant figure this out its real simple but I keep getting errors when trying to do it so here is my code. Im trying to add all the quest to list.

Code:
mob/var/list/Quest=list()

mob/verb/Test()
for(var/X in typesof(/obj/Quest))
usr.Quest+=new X//error line


Problem description:
runtime error: type mismatch: /obj/Quest/Kill2wasps (/obj/Quest/Kill2wasps) += Kill 2 Buzzard Wasps (/obj/Quest/Kill2wasps)

Somewhere along the line (not in your code) Quest became a type path rather than a list. Maybe you should check any old/test quest code you had (or just anything involving the quest variable).
In response to Jeff8500
Right now quest is only altered by that code and one other but I dont call that code right now but just in case here it is
mob/proc
Add_Quest(obj/Quest/new_quest)
if (!Quest)
Quest = new()
Quest += new new_quest
In response to Jeff8500
Ok i missed understood your post but i got it I created a new character and it worked this time.
In response to NightJumper88
Ah yes. Your old save file must have had the Quest variable set to a type path/object (I forget what it was). Remember that before coming here, you should always try to create a new save file! When testing, I have similar problems all the time.
In response to Jeff8500
Yeah i always do and I thought i did but I must not have but thanks for the input