QuestList = new
CheckQuest(QuestName, Step as num, Target)
for(var/obj/Quest/Q in src.QuestList)
world << 1005
if(Q.name == QuestName)
CheckStep(Q, Step, Target)
CheckStep(obj/Quest/Q, Steps as num, mob/NPC/Quest/Target)
world << "List 1,1: [Q.StepsList["Step [Steps]"]]."
if(Q.StepsList["Step [Steps]"] == "Talk to NPC")
world << "2"
if(Target.type == Q.StepsList[Steps])
world << "!"
Name = "Quest"
list/StepsList = newlist()
world << Steps
name = Name
StepsList.len = Steps
Owner.QuestList += src
world << "Called Set!"
StepsList = "Step 1"
var/list/L = list("Talk to NPC", /mob/NPC/Quest/A)
StepsList = L
var/mob/PC/M = usr
M.CheckQuest("Quest1", 1, /mob/NPC/Quest/A)
icon = 'test.dmi'
set src in world
var/mob/PC/P = usr
new /obj/Quest(usr, "Quest1", 1)
P.CheckQuest("Quest1", 1, src)
Quite a large snippet, but the jist of the problem. I've started dealing with multidimensional lists. I've read up on them in Kunakr's DM Programming Tutorial P.III. As shown in the comment above, the SetList proc isn't even called, be it through New() or Click() Is there anything that could be stopping this? I've scoured over it and I can't possibly think of a work around. I tried making a New() under quest1 to set the list, but it won't pass through that either even if there is a ..() within it. Any ideas?