Blooneans sound simple enough from my understanding they are your true and false questions.
however I am having a problem with level/hit-and-freeze
local see = function()
local enemy = hero:findNearestEnemy()
local distance = hero:distanceTo(enemy)
if distance <3 then
return true
else
return false
end
end
loop
local enemy = hero:findNearestEnemy()
if see = true then
hero:attack(enemy)
else
hero:shield()
end
end
I dont know why but it keeps attacking even if see returns false
local see = function()
local enemy = hero:findNearestEnemy()
local distance = hero:distanceTo(enemy)
if distance < 2 then
hero:attack(enemy)
else
return false
end
end
loop
see()
end
however I am certain that’s not how they wanted me to do it.
wants a value of true or false to be substituted for the <boolean-logic-statement>
see() is a function correct? It returns a true or a false value right? So we want to use it as a verb for the <boolean-logic-statement> in the if-then-else code block.
@LordMaddog Anyone in the community can submit patches for the levels. That is what I have been doing. Once the dev team has time to look, they can be added to the levels and updated. That is why I have also posted the content for the levels.