var/items = 0
for(var/obj/Questholder/H in src.contents)
for(var/obj/Questholder/X in src.Questlog)
var/obj/Questholder/Q = new X.type
Q.completed = X.completed
src.contents += Q
for(var/obj/Questholder/G in src.contents)
src << output(G, "Questlog.questgrid")
if(usr.Questlog.len == 0)
for(var/obj/Questholder/F in src.contents)
usr.view_quest = F
Currently I'm working on revamping the quest system for my game. For some strange reason, whenever this proc is called the first time, if there's only one quest in the log, it won't display anything in the grid, yet it'll still load up the information is display it (via Fill_Quest_Window). That means that there most certainly is a quest in the contents. Why will the grid not fill properly? It does should there be more than one quest in the log, but not for a single.
And, on occasion, even when there is more than one, it doesn't fill properly. It makes the cells for the quests that are there, since the lines show up, but there is nothing put into those cells.