How do you use pets?


#41

You need if potion:
or if key:


#42

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


#43
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)

#44

oops forgot to indent


#45

Should that be if potion: with a colon?


#46

yes, sorry …


#47

THANK YOU so much for your help.:smiley:


#48

your welcome…:slight_smile:


#49

For some reason, pets can’t pick up coins :frowning:


#50

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


#51

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


#52


#53

this is just too cute for me :heart_eyes:


#54

@maka can you make one for the baby griffin?


#55

maybe something with anya with the griffin…


#56

AAAAAAAGH I just can’t resist :heart_eyes::heart_eyes::heart_eyes::wolf::wolf::wolf:


#57

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.


#58

Ok, last one for a while. I’m spoiling all the future surprises.


#59

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


#60

AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!

tenor (1)

Senick with the chest really suits him :wink: