Jenny's method - stacking while true loops: Summit Gate

i know but somebody asked whitch heroes i have

i made so that at the beamtower before i attack my hero is shielding it works but when i need to heal my hero only stand still this is my code:

while True:
    paladins = []
    enemies = hero.findNearestEnemy()
    if hero.canCast("invisibility", hero):
        hero.cast("invisibility", hero)
    friends = hero.findFriends()
    for friend in friends:
        if friend.type == "paladin": 
    for enemy in hero.findEnemies():
        if enemy.type == "catapult":
            while > 0:
        friends = hero.findFriends()
        for friend in friends:
            e = friend.findNearestEnemy()
            if e:
                hero.command(friend, "attack", e)
    fire = hero.findNearestEnemy()
    if fire:
        while > 0:
        if fire.type == "tower":
        if hero.pos.x > 160:
            hero.moveXY(175, 35)
            hero.moveXY(175, 8)
            hero.moveXY(245, 14)
            hero.moveXY(245, 34 )
            while < hero.maxHealth:
                hero.moveXY(245, 35)
                if > hero.costOf("soldier"):
                paladin = hero.findByType("paladin")
                for paladin in paladins:
                    if paladin:
                        if paladin.canCast("heal",paladin):
                            hero.command(paladin, "cast", "heal", hero)
            if hero.maxHealth <=
                if fire:
                    hero.moveXY(277, 34)
                    hero.moveXY(277, 5)
                    DJ = hero.findNearestEnemy()
                    if DJ:
                        while > 0:
                        hero.moveXY(277, 48)
                        lie = hero.findNearestEnemy()
                        if lie:
                            while > 0:
                        while True:
                            n00B = hero.findNearestEnemy()
                            if n00B:
                                if hero.isReady("bash"):

what is this line
20 char

that’s because the paladins are going to help with attacking

Wait did you learn append in mountains?

no but somebody i forgot who said i could use append so i looked how to use it

Haha. I’m in Glacier and I don’t remember how to use it. Did you really write the code by yourself?

yes why?

If you did don’t use things that you haven’t leared yet

Okay. Nice. Let’s help again.
That was just a question, don’t be mad at me.

I don’t get angry with a question

A hint: try to use flags instead od moveXY in this level.

ok i will try it

i tried it with flags but when i use them Tharins doesn’t go!

you need to write flag = hero.findFlag(“green”) If flag: hero.pickUp(flag)

it still doesn’t move

Did you equip flags?

yes i did

wanna see my code?

Yes, I want to. 20 chars