- Dec 29, 2019
- 453
- 494
Try this:how to get cheat code
Code:
$ grep -HERi -A6 -B2 'cheats =='
game/pc.rpy-label pc_cheats:
game/pc.rpy- $ cheats = renpy.input("Please enter your code:")
game/pc.rpy: if cheats == ("givememoney"):
game/pc.rpy- $ cash += 10
game/pc.rpy- "+$10"
game/pc.rpy- jump pc_screen
game/pc.rpy: if cheats == ("shelikesme"):
game/pc.rpy- $ katieaffection += 10
game/pc.rpy- "Katie likes you more!"
game/pc.rpy- jump pc_screen
game/pc.rpy: if cheats == ("FCA"):
game/pc.rpy- $ futacontent == 1
game/pc.rpy- "Futa content activated."
game/pc.rpy- jump pc_screen
game/pc.rpy: if cheats == ("FCD"):
game/pc.rpy- $ futacontent == 0
game/pc.rpy- "Futa content deactivated."
game/pc.rpy- jump pc_screen
game/pc.rpy- else:
game/pc.rpy- "Invalid code."
game/pc.rpy- jump pc_screen
givememoney: cash += 10 (+$10)
shelikesme: katieaffection += 10 (Katie likes you more!)
FCA: futacontent == 1 (Futa content activated.)
FCD: futacontent == 0 (Futa content deactivated.)
You can also try to open a console (Shift+o) and type this:
cash += 1000
See also:
https://f95zone.to/threads/enabling-developer-command-consoles-in-renpy.113/
https://f95zone.to/threads/enabling-developer-command-consoles-in-renpy.113/#post-110921
PTGames
Are you sure it is correct?
Shouldn't it be like this?:
futacontent = 1
futacontent = 0
What's more, I'm not sure about this whole if ... else statement.
in my opinion, it would be nicer if you use something like this:
Code:
label pc_cheats:
$ cheats = renpy.input("Please enter your code:")
$ cheats = cheats.strip()
if cheats == "givememoney":
$ cash += 10
"+$10"
elif cheats == "shelikesme":
$ katieaffection += 10
"Katie likes you more!"
elif cheats == "FCA":
$ futacontent = 1
"Futa content activated."
elif cheats == "FCD":
$ futacontent = 0
"Futa content deactivated."
else:
"Invalid code."
jump pc_screen
Last edited: