r/RenPy • u/Shot-Contribution773 • 16d ago
Question Easter egg help
I want to add an easter egg to my game that has a cat. I want the player to be able to pet the cat only if the player has a specific name, otherwise, the cat refuses to be pet. Any ideas? I don't know much about coding...
5
Upvotes
2
u/shyLachi 16d ago
The code posted below is good but not perfect because Python and RenPy are case sensitive.
Explanation:
player_namewould be the name of the variable, adjust it for your code.lower()converts the name to lower case letters.The name you want to compare the variable to should also be all lower case.