avatar
Buddys Name A

luckyman 869 9th Jan, 2022

PYTHON 0.62 KB
                                           
                         # 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.
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data

Comments

Authentication required

You must log in to post a comment.

Log in
    There are no comments yet.