in all the various return to thornbush farm levels, my hero is always slightly too slow and gets caught in the blast of the last one or two fire traps.
renouncing the “say” command (by turning it into a comment) “solves” the issue, but that clearly shouldn’t be necessary.
is it a bug or am i just dumb? it feels odd that’ i’d be the first one ever to make whatever mistake i seem to be making
here’s the code i used for “return to thornbush farm B” (lua)
-- The function maybeBuildTrap defines TWO parameters!
local function maybeBuildTrap (x, y)
-- Use x and y as the coordinates to move to.
hero:moveXY(x, y)
local enemy = hero:findNearestEnemy()
if enemy then
hero:say("I should build!")
-- Use buildXY to build a "fire-trap" at the given x and y.
hero:buildXY("fire-trap", x, y)
end
end
while true do
-- This calls maybeBuildTrap, with the coordinates of the bottom entrance.
maybeBuildTrap(38, 20)
-- Now use maybeBuildTrap at the right entrance!
maybeBuildTrap(56, 34)
-- Now use maybeBuildTrap at the top entrance!
maybeBuildTrap(38, 48)
end
does the game expect me to have played more practice levels by this point instead of rushing through the main sequence, and i’m therefore missing some speed bonus? or am i just dumb and messing something up?