One Time use Cheat Inputs
Posted: Mon Mar 21, 2022 4:30 pm
Renpy Version used is 7.4.11
Trying to implement a cheat function for the game, as one that only allows a cheat password to be used only once
Example of something I have worked on but I don't have it working correctly. That code is just a simple test of it
Trying to implement a cheat function for the game, as one that only allows a cheat password to be used only once
Example of something I have worked on but I don't have it working correctly. That code is just a simple test of it
Code: Select all
define e = Character("Eileen")
default Cheat_Money = False
default Money = 0
default Wellness = 0
default Cheat_Wellness = False
# The game starts here.
label start:
e "Today we are testing out cheats"
e "So please enter a cheat"
menu:
"Cheat Input":
$ renpy.input("Enter a cheat")
if renpy.input == "Add Money":
$ Money +=100
$ Cheat_Money = True
"You have entered the correct cheat for Money"
if Cheat_Money == True:
"Cheat was already entered before"
jump start
if renpy.input == "Wellness Up":
$ Wellness +=10
$ Cheat_Wellness = True
"You have entered the correct cheat for Wellness"
if Cheat_Wellness == True:
"Cheat was already entered before"
jump start
else:
"You did not enter a correct cheat phrase"
jump start
e "So did you enter any cheats correctly?"
return