I’m trying to beat the Forest Fire Dancing level (level 13 of Backwoods Forest if you include the arena). With just the starting code, it says for line 2 (just “loop”): “ReferenceError: pos is not defined”
This is the code without anything added (which brings up the error regardless):
loop local evilstone = self:findNearest(self:findItems()) if evilstone then pos = evilstone.pos if pos.x == 34 then -- If the evilstone is on the left, go to the right side. else -- If the evilstone is on the right, go to the left side. end else -- If there's no evilstone, go to the middle. end end
How would I be able to get this to go away? Tharin doesn’t do anything because of this. Thanks.