# The peasant wants to know your pet's name.
# Use this function as the handler for "hear" events.
def sayName(event):
# The pet will say these in order when this function is called.
pet.say("My name is Bo sua")
pet.say("But my friends call me Fluffy.")
# Use pet.on("eventName", functionName) to add an event listener to your pet.
# In this case use "hear" and sayName with pet.on()!
hero.say("My name is Tip")
pet.on("hear", sayName)
# You don't need to say anything this time!
# The peasant will do the talking.
Buddys Name A
luckyman 869 9th Jan, 2022
To share this paste please copy this url and send to your friends
RAW Paste Data
There are no comments yet.