I was trying to go back through the levels and try the lua programing. It pops up with an error saying enemy not found please use enemy = hero:findNearestEnemy(). here’s my code:
while true do
enemy = hero:findNearestEnemy()
hero:attack(enemy)
end
Anyone know why its telling me this error if i have the code it tells me to use?
So is it Dungeon, Forest, Desert, Mountian, or Glacier?
What name is the Level?
The reason I am Asking is to make sure that code combat is working correctly.
So could you send me the link?
now its telling me it received null and asked if hero should always attack and use if. i tried but it wouldn’t work. is there a way i should type an if statement in lua that i don’t know?
(never mind. it works fine now) (thanks)