How do you use pets?

How exactly do you use pets? I have a wolf and cougar. I had made it halfway through the forest before buying a subscription, then when I did the pets unlocked. Are there more than the wolf pup and cougar cub? What are they used for? How do I use them?

~A confused coder

1 Like

Currently, I believe there are only those are the only two available.
The developers are testing out the Baby Griffin and other new pets they hope to release in the near future.

2 Likes

I am also confused. The wolf and the cougar don’t do much but follow you in the levels what specific job do they have?

2 Likes

I believe they are mostly used to fetch potions and say something to solve puzzles. You will also move the pet around with the moveXY command to trigger something etc.

3 Likes

Very true! Total features include:
Talking to you;
Fetching things;
Flying over holes to get items that the hero can’t get;
AND
Most IMPORTANT:
Pets don’t get hurt from mines and traps AND don’t suffer from mushrooms.
They will become useful in the desert.
Hope this is useful :slight_smile:

4 Likes

We will be adding more abilities, and more pets, in the future. But in the meantime, some hints to get you started:

You can use pet.debug(x) on any level instead of hero.say(x) if you want to print out debugging messages without slowing down your hero.

The true power of pets are event handlers, first discussed in the level Backwoods Buddy in Backwoods Forest. There are several levels teaching about this in Forest and Desert, and the concept is also used in the Game Development 2 and Web Development 2 campaigns.

If you haven’t gotten that far yet… keep going! :slight_smile:

6 Likes

I was also wondering if you could command your pet to attack the enemies

3 Likes

I tried but it says it wasn’t a function in the game.

Maybe they will and a pet like the Raptor, which will attack enemies.

2 Likes

We experimented with pet combat early on, but Okar was inconsolable when his kitten got injured, so we stopped. :crying_cat_face:

9 Likes

Ok, thanks for the info. Is there any other way to maybe develop a pet that goes into combat with the hero?

3 Likes

Maybe like I suggested in my Volcano Idea post:

Yeti slows / freezes nearby enemies
Angel heals you once every while
Raptor pet makes you attack faster and deal more damage

3 Likes

That would probably work!

2 Likes

16 Likes

Pets are very helpful in Kithguard Brawl because they can fetch you health potions while you fight

5 Likes

I can’t get the pet to fetch in a non-pet designated level. He just says "I can’t carry that!"
Is this me, or a hard limitation?

2 Likes

What level is it? Is it a multiplayer clan battle perhaps? It also depends on the code you have. Do you mind pasting your code?

thanks :smiley:

2 Likes

Yeah I found that too. Its weird.

2 Likes

def goFetch():
while True:
coin = pet.findNearestByType(“coin”)
if coin:
pet.fetch(coin)

pet.on(“spawn”, goFetch)

it’s a challenge level: Sarven Siege 2 in the Desert, where you need to protect the arrow towers

Thanks!!!

4 Likes

I didn’t include the rest because it was a lot…but I can if it will help

3 Likes

Ok… In this case, do you have the Kithsteel Blade? For that battle, it’s either gain coins or fight, and I choose fight often. For some reason, the pets don’t work for that level. The Kithsteel Blade lets you hit them before they can react. And the fastest boots you have will help you spring on to more enemies, well, faster.

Here is my code:

// Defend your towers in this replayable challenge level!
// Step on an X if you have 20 gold to build a soldier.
while(true) {
var enemy = hero.findNearestEnemy();
if (enemy) {
hero.attack(enemy);
}

}

My philosophy is: In coding, it’s war not piece - especially if your fighting dumb ogres (Not a real philosophy, but it fits :smiley: )

Hope this helps!

2 Likes