[SOLVED] Mountain Mercenaries Help - Cloudrip Mountain

Try if coin:.
Dima

2 Likes

Hello @TEO.

A couple things that I see:
First of all, instead of coin.Pos put coin.pos. Don’t capitalize pos.
Also, what happens if there isn’t a coin? You need it to be more like this:

if coin:
    hero.move(coin.pos)

Also, erase where it says hero.say("I need coins!").
Then, where it says # Loop over all your soldiers and order them to attack., instead of putting if soldier, you need for soldier in soldiers:.
Finally, where it says hero.say("I should summon something here!"), erase that and put hero.summon("soldier").

Hope this helps.
-Gray