The trails : 3 oasis gardians down ... but no final Boss

hi ;

i get stuck with this code :slight_smile:

`

while True:
    enemy = hero.findNearestEnemy()
    target = enemy
    item = hero.findNearestItem()
    
    if hero.canCast("chain-lightning", target) and target:
        hero.cast("chain-lightning", target)
        if not target:
            break 
    if enemy:
        hero.attack(enemy)
    if item:
            hero.moveXY(item.pos.x, item.pos.y)
            
    if hero.time == 80:
        hero.moveXY(26, 24)
        hero.moveXY(9, 87)
        
    if hero.time  == 190:
        hero.moveXY(144, 115)
    if hero.time == 280:
        hero.moveXY(56,120)
        hero.moveXY(41,78)
        hero.moveXY(82,68)
        hero.say("now die")
        hero.moveXY(102, 93)
        hero.moveXY(142, 75)
        pet.moveXY(102, 93)
        hero.moveXY(105, 60)
        hero.moveXY(62, 70)
        hero.moveXY(83, 57)
        hero.moveXY(97,69)
`#no boss fight event get triggerd 

someone know why?
thx

Hi @jibllee, and welcome to the forum! :partying_face:

What is your equipment?

-@Anna

The indentation is wrong here so it probably explains why you can’t trigger the bosses, inorder to trigger the bosses you need to collect all the mushrooms.
Charlie

1 Like

thx . but this is done ( all shrooms are collected )

hi Anna!

thx u for wellcoming me

have a good day !

2 Likes

Did you complete the level?

I used flags to tell my hero where to do. It might just be a problem of strategy here.

2 Likes

Same too. You have to agree though it was a really fun level. I swear I even had a weird dream about it … :sleeping:

3 Likes

Trying @Anna is right. Trying to hard code everything can have an effect on the outcome of level.

3 Likes