Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

Help me backwoods endangered burl [SOLVED]


#1

please help me if you know how to do this level


#2

Please post your code and we’ll be happy to help.


#3

now my problem is when i put if ogre move then when there’s no ogre it attacks the burl


#4

Enemy is already defined in the sample code so you don’t need any additional variable definitions. Just follow this example for each enemy type.

EndangeredBurl


#5

Munkey Shynes sorry but this morning morning i had to go so can we talk now ???


#6

Either define ogre or do if enemy.type=="ogre".


#7

thanks for the help man but my hero keeps on attacking the burl


#8

never mind now it won’t attack the throwers


#9

did you define the thrower


#10

oh hey um ya but now my hero won’t run from the ogre


#11

hey if you want to check it out i have another conversation called is a simple katana worth buying here’s the linkhttps://discourse.codecombat.com/t/is-the-simple-katana-worth-buying-if-you-all-ready-have-a-sword-like-the-long-sword/16806


#12

show your code please


#13

Please stop off topic discussions.


#14

here it is 17%20PM


#15

Why did you duplicate the code? You have two loops for the same thing. The code will never see the second loop. Everything above line 17 needs to be deleted.


#16

did not work munkeyshynes


#17

never mind thanks :crossed_swords::crossed_swords::crossed_swords::crossed_swords::crossed_swords::crossed_swords::crossed_swords::crossed_swords::crossed_swords::crossed_swords::crossed_swords:


#18

Put solved in your title to let everyone know that this topic has been solved @guy_oy , Thanks!