Perhaps you meant to do this?Mr. Strange wrote:Code: Select all
function ApplyParams(id, p) for i,v in pairs(p) do minion[i] = v end end end
Code: Select all
function ApplyParams(id, p)
for i,v in pairs(p) do
minion[id][i] = v
end
end
end
Perhaps you meant to do this?Mr. Strange wrote:Code: Select all
function ApplyParams(id, p) for i,v in pairs(p) do minion[i] = v end end end
Code: Select all
function ApplyParams(id, p)
for i,v in pairs(p) do
minion[id][i] = v
end
end
end
Well, apparently the real lesson is that at 5 in the morning I should just go to sleep - I was able to get everything working find this morning.rude wrote:No it's not. Precisely how does it "blow up"?Mr. Strange wrote:I suppose that maybe this is to be expected
Yes exactly. I'm simplifying my example some when I post them here, but you're correct - I am using "id" to specify the index in my general object list. Good catch.Kaze wrote: Perhaps you meant to do this?Code: Select all
function ApplyParams(id, p) for i,v in pairs(p) do minion[id][i] = v end end end
Users browsing this forum: No registered users and 6 guests