Dangerous key help

@Chaboi_3000 are you able to help.

You have some keys goldKey , silverKey and bronzeKey . What will fetch your pet, some property of the keys or the real keys?

This isn’t a bug, you just need to check these lines: (btw is used Diff checker as @xython recommended and it was really helpful)

if you’re using these: “gold-key”, “bronze-key”, “silver-key”.
then what’s this for?

:wink:

1 Like

@Deadpool198 is right, @Gamestack. You can’t carry a string. :stuck_out_tongue: Use the variables you have defined.

Woooooo hooo i am a regular now! So awsome!

Good job dude! Keep up with the activity because after the grace period, you will have to work hard. XD

Congratulations @Archion !
The above program has a logic flaw, commonly made and almost always neglected. If the code is into a while True loop you will make at least many additional iterations. See yourself the code execution

def mess(message):
    if message == "Gold":
        print("gold-key")
    if message == "Silver":
        print("silver-key")
    if message == "Bronze":
        print("bronze-key")

# def mess(message):
#     if message == "Gold":
#         print("gold-key")
#     elif message == "Silver":
#         print("silver-key")
#     elif message == "Bronze":
#         print("bronze-key")

keyMessages = ["Gold", "Silver", "Bronze"]

for message in keyMessages:
    mess(message)

1 Like

Thank you @Deadpool198 so I get rid of this?

paladinUnit = pet.findNearestByType("paladin")
    goldKey = pet.findNearestByType("gold-key")
    silverKey = pet.findNearestByType("silver-key")
    bronzeKey = pet.findNearestByType("bronze-key")

Or this

pet.fetch("gold-key")
pet.fetch("silver-key")
pet.fetch("bronze-key")

Neither. Replace each string in the pet.fetch with their respective variable.

ok thanks
200000000000000000 chars

Gamestack, pls change ur profile picture. Your previous one is 2000000000x better. :face_with_symbols_over_mouth:

Yeah it is.:no_mouth::neutral_face::expressionless::fearful::anguished:is what i think; but don’t judge anybody else’s opinion as better than yours because it’s your opinion that matters. basically i’m saying that you don’t have to if you don’t want to.

1 Like

I’m afraid I’m going to have to agree. What even is it, young Professor X.?

1 Like

I can’t find my previous one but you can help me find it XD

something like this…
download

1 Like

Is that theoddonesout ?

yes. 2000000000000000 chars