How do you use pets?

You need if potion:
or if key:

4 Likes

and you must do potion=pet.findNearestByType"potion"

4 Likes
def onSpawn (event):
    potion=pet.findNearestByType("potion")
if potion
    pet.fetch(potion)
key=pet.findNearestByType("gold-key")
if key:
    pet.fetch(key)

skeleton = pet.findNearestByType("skeleton")
pet.on("spawn", onSpawn)
6 Likes

oops forgot to indent

3 Likes

Should that be if potion: with a colon?

3 Likes

yes, sorry ā€¦

2 Likes

THANK YOU so much for your help.:smiley:

4 Likes

your welcomeā€¦:slight_smile:

3 Likes

For some reason, pets canā€™t pick up coins :frowning:

Wait - does this mean we can play as the ogres, or will we have to combat pets AND ogres? @Serg

gg to the people who made the art. this thing is adorable :heart:

2 Likes

7 Likes

this is just too cute for me :heart_eyes:

2 Likes

@maka can you make one for the baby griffin?

3 Likes

maybe something with anya with the griffinā€¦

1 Like

AAAAAAAGH I just canā€™t resist :heart_eyes::heart_eyes::heart_eyes::wolf::wolf::wolf:

It is so cute :heart_eyes: :heart_eyes::heart_eyes::cat::wolf:.I guess if we think this is unbearably cute we will have trouble with the pets that actually charm people.

1 Like

Ok, last one for a while. Iā€™m spoiling all the future surprises.

6 Likes

Woah that is what I call a great image of pets.

2 Likes

AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!

tenor (1)

Senick with the chest really suits him :wink:

2 Likes