while True:
flag = hero.findFlag()
enemy = hero.findNearestEnemy()
if flag:
# Pick up the flag.
hero.pickUpFlag(flag)
elif enemy:
# Only attack if the enemy distance is < 10 meters
if hero.distanceTo(enemy) < 10:
hero.attack(enemy)
```thats my code i just tried to kill the hunters
Obviously there are many ways to complete this level, and the way your trying to do it, simply by defending the peasants with just your hero, I think is possible, but your hero has to be very powerful. The point of the level is to help you get used to for loops. The hero collects coins, summons a soldier, and commands it to defend a certain point. If your finding it hard to get your head around for loops, then you could try going back to the previous levels that introduce the concept.
You tried brute force, but there are 2 mistakes. 1. if hero.distanceTo(enemy) < 10: hero.attack(enemy) will only have your hero attack if an enemy is within 10 meters. 2. Legitimately do it!
I don’t think really expensive equipment’s necessary, look at @alexbrand on cavern survival or serpentine on multiplayer treasure grove. They did well without a subscription, just the basic heroes. And @ducky,
Since most people don’t have, or can’t get the burl staff, Brenin was showing a way of doing this level which would work for everyone and teach the level’s lessons properly, whether they had a subscription or not.
So just saying: “You only have to have the burl staff”, makes it seem like anyone could have it. But not everyone can.
The same with “or a bunch of archers”, at this point in the campaign, players who are doing this level for the first time won’t have, boss star 2, which allows archers.
Maybe FrostedGaming did have a subscription, but did you know that?
Please don’t contradict a helpful statement with an unhelpful one.
Thanks.
and I think it could be even much more simple. Becouse the main point here is tactics and summoning troops and giving orders for them. Oh, sure, and collecting coins, thus Ring of speed and good boots are helpful items. I did everithing strictly the way it was provided by lvl inctructions.
Good luck!)
Listen to Deadpool198: “I don’t think really expensive equipment’s necessary,” You can beat the level simply by defending the peasants and I think the creativeness must be stimulated. But it’s easier to follow first the instructions if you don’t master well some programming tricks.
Alex posted part of his solution and this is mine:
I think their behavior strictly coded by level designer. It looks like lvl could be easily win by sending everybody to “x”: 67, “y”: 45 and protecting them by hero himself if he is strong enough. So to prevent it and make player summon troops and use “for”, thees two dummies are hanging and wandering there.
So, you have boss star III and can star the level with summoning 3 soldiers)
Summon them, command troops to protect civilians and tell peasants to go to the safe place (or to collect gold). Follow the instructions literally and you’ll win.
Good luck!)