Quicksand in desert duel

if I use a quicksand on a path does it block it for me and my opponent or just my opponent.

@Bryukh can you help because im pretty sure most people dont even know this exists yet.

It’s all players in the lane; including yours.

Also what are all the specials i know quicksand and boost are there others

Im working on documentation, it will be soon. Sorry, it was really hectic month.

1 Like

can someone help me with this

    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    **if theirPlayers >= 3 and hero.isReady("quicksand")**
    hero.play("quicksand", targetLane)

It says there’s an error on the bolded line

You need to indent anything in the if and add a colon (:) to the end

like

    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
         if theirPlayers >= 3 and hero.isReady("quicksand");
    hero.play("quicksand", targetLane)

cause for me it says that its still wrong.

This is a semicolon change it to ---> : <---

1 Like

also how do you like reset your code because its telling me that its an infinite loop but I cant get in to it in any way to edit it.

and indent everything IN the if, not the if statement itself

why doesn’t this work

while True:
    hero.summon("big", 0)  
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)  
    hero.summon("charger", 0) 
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)  
    hero.play("boost", 0)
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)  
    hero.summon("driver", 0)
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)  
    hero.summon("driver", 0)   
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)  
    hero.summon("threat", 0)    
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)  
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    

this is a list, so you might want to check the length of the list, not the list itself, hint: len(theirPlayers)

1 Like

so how do I look at the list sorry im bad

It’s okay, dont say that, we all still have things to learn :wink: :smile:

so instead of saying if theirPlayers >= 3 you just make it this way: if len(theirPlayers) >= 3

if you want more explanation, i suggest you read the documentation for the method hero.findTheirPlayers() in the methods tab, if you still need help after that, then just reply back here :slight_smile: