If you’re having problems with the Ogre Encampment level, like I had, I’ll be writing the LUA code to it. I don’t know why, but that level doesn’t work with the normal If/else, you have to use If not enemy and elseif.
Code:
while true do
local enemy = self:findNearestEnemy()
if not enemy then
self:attack("Chest")
elseif enemy then
self:attack(enemy)
self:attack(enemy)
end
self:say("this is here because the code can bug, so don't remove it")
end