Error RoMScript returned values
Posted: Fri Apr 16, 2010 11:57 am
I'm trying to write an in-game function to return all the quest names in the quest book to speed up some quest functions I'm writing but I've encountered a problem.
Taking igf_GetTooltip as a guide I wrote in my MyFunction addon.;
In a waypoint file I wrote;
When the in-game function executes it correctly prints all the quests names and blanks for the rest but after RoMScript
recieves its values it prints about 11 quests and nil for the rest. I even did some tests with igf_GetTooltip and it looks like it also only recieves some of the lines and the rest are nil.
Is there some sort of limitation to RoMScript or is it just not behaving the way it's supposed to?
Taking igf_GetTooltip as a guide I wrote in my MyFunction addon.;
Code: Select all
function igf_getQuestList()
local qq={}
for i=1,30 do
__, __, name = GetQuestInfo(i)
qq[i] = name or " "
pr(qq[i]) -- Debug
end
return qq[1], qq[2], qq[3], qq[4], qq[5], qq[6], qq[7], qq[8], qq[9], qq[10],
qq[11], qq[12], qq[13], qq[14], qq[15], qq[16], qq[17], qq[18], qq[19], qq[20],
qq[21], qq[22], qq[23], qq[24], qq[25], qq[26], qq[27], qq[28], qq[29], qq[30]
end
In a waypoint file I wrote;
Code: Select all
local qq={}
qq[1], qq[2], qq[3], qq[4], qq[5], qq[6], qq[7], qq[8], qq[9], qq[10],
qq[11], qq[12], qq[13], qq[14], qq[15], qq[16], qq[17], qq[18], qq[19], qq[20],
qq[21], qq[22], qq[23], qq[24], qq[25], qq[26], qq[27], qq[28], qq[29], qq[30]
=RoMScript("igf_getQuestList()")
for i=1,20 do
print(qq[i])
end
recieves its values it prints about 11 quests and nil for the rest. I even did some tests with igf_GetTooltip and it looks like it also only recieves some of the lines and the rest are nil.
Is there some sort of limitation to RoMScript or is it just not behaving the way it's supposed to?