[SOLVED] The Two Flowers level in Cloudrip Mountain for peter palov and every one!

Try this and it should work.

Andrei

Don’t forget to write:

if friend and friend.type != "peasant"

Peasants can’t attack.

does this answer your question/problem? if so please make sure to hit the tik mark box that says solved and someone with the high enough level of trust will put the title to [Solved]. @paracatower.com

Thank you every one i finally pass the level :slight_smile:

Congratulations! :partying_face:

Congrats @paracatower.com!

Andrei

Thank you every one and i pass The Geometry of Flowers too and Mountain Flower Grove too !

Look https://discourse.codecombat.com/u/PeterPalov (PeterPalov) You are very good wow

I suppose you are under Windows. You can use Snip for screenshots:

Hi long time no see sorry because i was busy so i did not talk to you guys for long!
Hello but now i am here!

Did you finish the level? If you didn’t, here is a hint.

def command():
    friends = hero.findFriends()
    for friend in friends:
        if friend.type == ā€˜soldier’:
            enemies = hero.findEnemies()
            enemy = friend.findNearest(enemies)
            # do something

I left some stuff out, and you need to run your function by yourself. Is this helpful?

RangerGrant, I don’t think this person is even active anymore.

Oh. I hope this is helpful for other people who chance on the post

OH MY IM MISSED YOU GUYS I WAS UNACTIVE FOR SO LONGGGGG sorry guys im back I was busy i am glad im back i wanna talk to you guys how are you?

idk if you guys remember me…

Uhhh, this is off-topic… lol, just pm them

YESS somebody is still heree

I think this is the topic i created 2 years ago LOl

wait it’s just 1 year oh