Crag Tag Help Please How to beat?

Do I have to buy the speed ring to beat this level? I’m a paid member.

loop:
# Pender is the only friend here, so she’s always the nearest.
pender = self.findNearest(self.findFriends())

if pender:
    # moveXY() will move to where Pender is,
    # but she'll have moved away by the time you get there.
    self.move(pender.pos)
    self.moveXY(pender.pos.x, pender.pos.y)
    
    # move() only moves one step at a time,
    # so you can use it to track your target.

No, you haven’t. This level can be done without speed ring.

as ImDev says, no speed ring required . . . just follow the directions given and write the code it tells you to write.

This can be beaten quite easily with Anya and a pair (any pair almost) of boots. As Vievo says:

Your code above uses two move statements, so use only the one it wants you to use. If you are confused about which to use and how, here are the differences between the two:

  • moveXY(x, y) - moves the hero until it reaches the (x,y) coordinates. Your hero can do nothing until it reaches those coordinates.
  • move(position) - moves the hero one step toward the position provided. After the step is made, control of your hero returns to you.
    • position: an object containing x and y properties. In many cases, this can be retrieved from the enemy or item you are trying to move toward. Example: self.move(enemy.pos)

I beat it. I finally figure it out.

3 Likes

Congratulations on your success!

3 Likes

@FuzzicalLogic Thanks it took me awhile to get to your comment, but it definitely helped!

Its telling me that I have to have boots on, yet they are “restricted” in the level. Plz help

You need boots that have the move() ability. Boots that only have moveXY() are restricted in this level. Please buy the Boots of Jumping to be able to play this level.

1 Like

Ok, so i am 32 gems short, and i already played all the non member levels, so is there a cheaper way to get the move() ability?

You can get the fine boots or the compound boots. They’re a lot cheaper.
:lion: :lion: :lion:

2 Likes
# Catch up to Pender Spellbane to learn her secrets.

while True:
    # Pender is the only friend here, so she's always the nearest.
    pender = hero.findNearest(hero.findFriends())

    if pender:
        # moveXY() will move to where Pender is,
        # but she'll have moved away by the time you get there.
        hero.moveXY(pender.pos.x, pender.pos.y)
        
        # move() only moves one step at a time,
        # so you can use it to track your target.
        #hero.move(pender.pos)
hero.move(pender.pos)

I don’t know which line to put the last bit of code

3 Likes

Put that inside this if statement:

Andrei

2 Likes

My hero still can’t catch her

1 Like

I think you don’t have to use “moveXY” only “move”.

1 Like

Try to not play with Okar since he is the slowest and use move() (as you already do) instead of moveXY().

Andrei

1 Like

I have Arryn (She’s already pretty fast) and Boot of Leaping. I don’t have enough gems (643) to buy the speed ring.

1 Like

You don’t need the speed ring.

You have to use only move.
And you can use Arryn, because, she is very fast
P.S. I have passed this level with Naria

2 Likes

Can you please remove that code @DimaP so we will help @LunaFromTheMoon get to the correct code by herself?

Andrei

2 Likes