Code: Select all
####################
##Cheat game name##
####################
init python:
config.overlay_screens.append( "cheat" )
image mod_cheat_menu_background = "138"
screen cheat:
order_reverse True
key "1" action Jump("nfo")
textbutton "{color=#1DDB16}{b}Cheat Menu{/b]{/color}":
xalign 0.01
action Jump("nfo")
background "#006"
insensitive_background "#444"
hover_background "#00a"
label nfo:
scene mod_cheat_menu_background
python:
try:
infoScreenSeen
except:
infoScreenSeen = False
jump mod_show_info
label mod_show_info:
if infoScreenSeen:
jump mod_cheat_menu
scene mod_cheat_menu_background
"This cheat menu is not part of the original game."
"If the {color=#1DDB16}{b}Cheat Menu{/b]{/color} {color=#FFBB00}doesn't appear in some screens just press the place were it should have been or press key{/color} {color=#1DDB16}{b}'1'{/b]{/color}"
"Everything should work fine, but I highly recommend you save your game before using it."
$ infoScreenSeen = True
menu:
"go back to your game":
return
"continue without saving":
jump mod_cheat_menu
label mod_cheat_menu:
scene mod_cheat_menu_background
menu:
"Money cheat":
jump mod_cheat_money
"Romance points(RP)":
jump mod_cheat_characters
"I want a new name!":
$ player_name = ""
$ player_name = renpy.input("Type your name (or just hit Enter for John as a default name.")
$ player_name = player_name.strip()
if player_name == "":
$ player_name = "John"
$ renpy.retain_after_load()
$ renpy.restart_interaction()
"Your name now is {color=#1DDB16}{b}[player_name]{/b}{/color}"
jump mod_cheat_menu
"Close cheat menu":
return
label mod_cheat_money:
scene mod_cheat_menu_background
menu:
"Give me $10000!":
$ money += 10000
$ renpy.retain_after_load()
$ renpy.restart_interaction()
jump mod_cheat_money
"What amount of money do you want?":
$ money += int(renpy.input("How much money to add?", allow="0123456789") or 0)
$ renpy.retain_after_load()
$ renpy.restart_interaction()
jump mod_cheat_money
"Back":
jump mod_cheat_menu
label mod_cheat_characters:
scene mod_cheat_menu_background
menu:
"xxx (RP: [RPx])":
menu:
"Add":
$ RPx += int(renpy.input("How much to add?", allow="0123456789") or 0)
$ renpy.retain_after_load()
$ renpy.restart_interaction()
jump mod_cheat_characters
"Remove":
$ RPx -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
$ renpy.retain_after_load()
$ renpy.restart_interaction()
jump mod_cheat_characters
"zzz (RP: [RPz])":
menu:
"Add":
$ RPz += int(renpy.input("How much to add?", allow="0123456789") or 0)
$ renpy.retain_after_load()
$ renpy.restart_interaction()
jump mod_cheat_characters
"Remove":
$ RPz -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
jump mod_cheat_characters
"yyy (RP: [RPy])":
menu:
"Add":
$ RPy += int(renpy.input("How much to add?", allow="0123456789") or 0)
$ renpy.retain_after_load()
$ renpy.restart_interaction()
jump mod_cheat_characters
"Remove":
$ RPy -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
$ renpy.retain_after_load()
$ renpy.restart_interaction()
jump mod_cheat_characters
"www (RP: [RPw])":
menu:
"Add":
$ RPw += int(renpy.input("How much to add?", allow="0123456789") or 0)
$ renpy.retain_after_load()
$ renpy.restart_interaction()
jump mod_cheat_characters
"Remove":
$ RPw -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
$ renpy.retain_after_load()
$ renpy.restart_interaction()
jump mod_cheat_characters
"vvv (RP: [RPv])":
menu:
"Add":
$ RPv += int(renpy.input("How much to add?", allow="0123456789") or 0)
$ renpy.retain_after_load()
$ renpy.restart_interaction()
jump mod_cheat_characters
"Remove":
$ RPv -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
$ renpy.retain_after_load()
$ renpy.restart_interaction()
jump mod_cheat_characters
"Back":
jump mod_cheat_menu
Code: Select all
$ renpy.retain_after_load()
$ renpy.restart_interaction()
What I want to do is make the mod do something like when you enter save or load menu so that when it closes you go back to the screen you were watching
I know that maybe what I did it's not the best way to do it and that I'm a newb at it but can you please help me?