Staff of Absorption quest description is buggy
Posted: Mon Sep 08, 2014 3:08 am
Ha! That's why I could never figure out what to do after the orc ambush --- the quest description is buggy:
As I follow the logic, I think what we want here is something like this:
- In several places it checks for completion of the "ambush-finished" sub-objective, which is a misspelling of "ambush-finish".
- In one branch, it checks for completion of both the "ambush-finished" and "survived-ukruk" sub-objectives; even setting aside the misspelling, "ambush-finish" is completed by dying while Ukruk is still alive and "survived-ukruk" is completed by killing Ukruk, so they can't both be completed.
As I follow the logic, I think what we want here is something like this:
Code: Select all
local desc = {}
desc[#desc+1] = "Deep in the Dreadfell you fought and destroyed the Master, a powerful vampire."
desc[#desc+1] = "In its remains, you found a strange staff. It radiates power and danger and you dare not use it yourself."
if self:isCompleted("survived-ukruk") then
desc[#desc+1] = "On your way out of the Dreadfell you were ambushed by a band of orcs."
desc[#desc+1] = "They asked about the staff and tried to steal it from you."
desc[#desc+1] = "You told them nothing and vanquished them."
desc[#desc+1] = "#LIGHT_GREEN#Go at once to Last Hope to report those events!"
elseif self:isCompleted("ambush-finish") then
desc[#desc+1] = "On your way out of the Dreadfell you were ambushed by a band of orcs and left for dead."
desc[#desc+1] = "They asked about the staff and stole it from you."
desc[#desc+1] = "#LIGHT_GREEN#Go at once to Last Hope to report those events!"
elseif self:isCompleted("ambush") then
desc[#desc+1] = "On your way out of the Dreadfell you were ambushed by a band of orcs."
desc[#desc+1] = "They asked about the staff."
else
desc[#desc+1] = "You should bring it to the elders of Last Hope in the southeast."
end
return table.concat(desc, "\n")