Getting the following error message in a red popup for the Endangered Burl level –
“Fix Your Code: Unsuported Compare operator, undefined”
I have read all the hints, changed characters, reloaded the game, finished the prior level completely, searched and read all the Discourse discussions on “Endangered Burl”, searched github…etc…but cannot work around this.
I have isolated the problem to an issue with my “if” statements. The original, unchanged code for the level produces the same error. Here is my much-simplified bit of troubleshooting code –
hero.moveXY(18, 15) while True: enemy = hero.findNearestEnemy() hero.say(enemy.type) #added this to know when hero detects a particular enemy if enemy.type is not "burl": hero.attack(enemy)
If I #rem out the “if enemy.type” line, the hero will attack the nearest enemy as expected (a burl…). When I run the program above, the “Unsuported Compare operator” error message appears.
My platform is Win7/64 - IE11 on an i7/16Gb laptop, all updates current; video optimized.