[Adventurer] Arrowproof Wolf


#1

Hi! Here is the new level about pets and also it’s a mastery level about collecting items: Arrowproof Wolf

arrow in back

The wolf cub is one of the free pets and it can catch arrows or spears (wolves love catch sticks too). This ability works “passively” – the pet catches near arrows if it has not been commanded before.


#2

Good level but sometime the pet doesn’t catch the arrow and I die and is the pet ment to follow my hero because in this level the pet doesn’t follow my hero.


#3

Have you woken up the pet?


#4

Cool ability!

Can we get some more info in the descriptions of the pet abilities? For example, form testing I think the cougar’s chase ability has a cool down of 15 seconds but I’m not sure if it has a range.

Also when I try to use it with a specific name like

pet.chase("Mog")

It doesn’t work, it gievs a refeance error saying chase is not defined.

Also, it doesn’t seem to work on some enemies that I think it should. Headhunters seem to ignore it even though my hero has more than 10 times as much health as them.


#5

Doesn’t work for me at all. I wake him up and he starts following me around, but he just ignores the arrows. I even switched to Tharin with no Ring of Speed.

hero.moveXY(12, 34)
hero.say('hi!')
loop:
    item = hero.findNearestItem()
    hero.move(item.pos)

#6

My case is the same as Dwhittaker. I even tried the hint to make the wolf actively catch the arrows but that didn’t work either. He doesn’t catch the first one that he’s awake and following me for so i don’t think it’s a cool down issue.


#7

Try to use moveXY.


#8

The problem can be with the range - try to use moveXY instead move. What the problem with the active usage of the ability?


#9

OK, so I switched to moveXY. He catches most arrows now. I got hit once, and another time the arrow missed me because I changed direction at just the right time. But I was able to complete the level now.

Would be cool if there was some type of animation of the wolf leaping to catch the arrow rather than it just vanishing.


#10

It could be a problem.


#11

Yes I have.
(20characters)


#12

It possible to past this level without pets help

loop:
    item = hero.findNearestItem()
    hero.moveXY(item.pos.x, item.pos.y)
    hero.shield()

#13

Yep, I know. Also mushrooms are carryable :wink:


#14

hm, could you show your code?


#15

Ok

Code
# Collect mushrooms.
# First, come to the wolf pet and wake up it (say).
hero.moveXY(pet.pos.x, pet.pos.y)
pet.say("Hi little wolf")
# Next collect mushrooms just usual items.
loop:
    pet.moveXY(hero.pos.x, hero.pos.y)
    item = hero.findNearestItem()
    if item:
        hero.move(item.pos)

I put pet.moveXY(hero.pos.x, hero.pos.y) because my pet won’t follow me.


#16

she can’t wake up herself :slight_smile: maybe try

hero.say("Hi little wolf")

oh, and about the pet.moveXY(), once you give commands to your pet it will stop its default behavior of catching arrows or whatever and do what you told it to do (move to a spot)


#17

Better to use pet.on(‘hear’, onHear)

And in the onHear function write pets actions


#18

I’ve added some fixes. I hope it will help.


#19

It was working perfect before for me, still seems good.


#20

Thank guy. Sorry I haven’t been on Codecombat Discourse for a long time.