[Solved] Problem with retaining variables

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
darckshame
Newbie
Posts: 19
Joined: Sun Feb 25, 2018 11:39 pm
Contact:

[Solved] Problem with retaining variables

#1 Post by darckshame » Wed Mar 21, 2018 4:52 am

Hello guys I'm trying to make a mod for a game and I have a problem with it to retain the variable change. the problem is that i already did a version that does what it must but I wanted to update it and now the new script doesn't work please help me understand what I did wrong and how I can improve on it.

The update that doesn't work:

Code: Select all

label mod_cheat_menu:
    show screen made_by
    
    menu:
        "Change girls stats v0.2":
            call mod_cheat_call_girls_stats
        "Close cheat menu":
            hide screen made_by
            python:
                renpy.return_statement()
                
    return

screen stats_girls():
    imagemap ground "intro/intro_island.jpg"
    imagebutton idle "GUI/Creation/intro_top.png"
    imagebutton idle "GUI/Creation/intro_bottom.png"

    default tt = Tooltip("")
    text tt.value xalign 0.5 yalign 0.95 size 30 drop_shadow (2, 2) color "#66c1e0"
    text "Select the character you want to mod." xalign 0.5 yalign 0.04 size 30 drop_shadow (2, 2) color "#66c1e0"

    imagebutton auto "phone/phone_alice0_%s.png" hovered tt.Action ("Pick Alice") focus_mask True xalign 0.10 yalign 0.20 action Return(alice)
    imagebutton auto "phone/phone_aly0_%s.png" hovered tt.Action ("Pick Aly") focus_mask True xalign 0.25 yalign 0.20 action Return(aly)
    imagebutton auto "phone/phone_amy0_%s.png" hovered tt.Action ("Pick Amy") focus_mask True xalign 0.40 yalign 0.20 action Return(amy)
    imagebutton auto "phone/phone_brenda0_%s.png" hovered tt.Action ("Pick Brenda") focus_mask True xalign 0.55 yalign 0.20 action Return(brenda)
    imagebutton auto "phone/phone_delizia0_%s.png" hovered tt.Action ("Pick Delizia") focus_mask True xalign 0.70 yalign 0.20 action Return(delizia)
    imagebutton auto "phone/phone_desire0_%s.png" hovered tt.Action ("Pick Desire") focus_mask True xalign 0.85 yalign 0.20 action Return(desire)

    imagebutton auto "phone/phone_eva0_%s.png" hovered tt.Action ("Pick Eva") focus_mask True xalign 0.10 yalign 0.50 action Return(eva)
    imagebutton auto "phone/phone_faye0_%s.png" hovered tt.Action ("Pick Faye") focus_mask True xalign 0.25 yalign 0.50 action Return(faye)
    imagebutton auto "phone/phone_heather0_%s.png" hovered tt.Action ("Pick Heather") focus_mask True xalign 0.40 yalign 0.50 action Return(heather)
    imagebutton auto "phone/phone_ivy0_%s.png" hovered tt.Action ("Pick Ivy") focus_mask True xalign 0.55 yalign 0.50 action Return(ivy)
    imagebutton auto "phone/phone_renée0_%s.png" hovered tt.Action ("Pick Renée") focus_mask True xalign 0.70 yalign 0.50 action Return(renee)
    imagebutton auto "phone/phone_yvette0_%s.png" hovered tt.Action ("Pick Yvette") focus_mask True xalign 0.85 yalign 0.50 action Return(yvette)


    imagebutton auto "phone/phone_lacey0_%s.png" hovered tt.Action ("Pick Lacey") focus_mask True xalign 0.10 yalign 0.80 action Return(lacey)
    imagebutton auto "phone/phone_jessica0_%s.png" hovered tt.Action ("Pick Jessica") focus_mask True xalign 0.25 yalign 0.80 action Return(jessica)
        
    imagebutton auto "phone/phone_jennifer0_%s.png" hovered tt.Action ("Pick Jennifer") focus_mask True xalign 0.40 yalign 0.80 action Return(jennifer)
    imagebutton auto "phone/phone_joy0_%s.png" hovered tt.Action ("Pick Jennifer") focus_mask True xalign 0.55 yalign 0.80 action Return(joy) 
        
    imagebutton auto "GUI/Creation/restart_%s.png" hovered tt.Action ("Back") focus_mask True xalign 0.95 yalign 0.97 action Return("back")

label mod_cheat_character:
    


    menu:
        "Current stats of [mod_name] :
        Favor [mod_favor] / Max affection [mod_affection_max] / Affection [mod_affection] / Max love [mod_love_max]
        / Love [mod_love] / Lust [mod_lust] / Anger [mod_anger]."

        "Add to all stats at once":
            $ mod_add_once += int(renpy.input("How much to add?", allow="0123456789") or 0)
            $ mod_favor += mod_add_once
            $ mod_affection_max += mod_add_once
            $ mod_affection += mod_add_once
            $ mod_love_max += mod_add_once
            $ mod_love += mod_add_once
            $ mod_lust += mod_add_once
            $ mod_anger += mod_add_once
            jump mod_cheat_character
        "Favor":
             menu:
                "Add":
                    $ mod_favor += int(renpy.input("How much to add?", allow="0123456789") or 0)
                    jump mod_cheat_character
                "Remove":
                    $ mod_favor -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
                    jump mod_cheat_character
        "Max affection":
             menu:
                "Add":
                    $ mod_affection_max += int(renpy.input("How much to add?", allow="0123456789") or 0)
                    jump mod_cheat_character
                "Remove":
                    $ mod_affection_max -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
                    jump mod_cheat_character
        "Affection":
             menu:
                "Add":
                    $ mod_affection += int(renpy.input("How much to add?", allow="0123456789") or 0)
                    jump mod_cheat_character
                "Remove":
                    $ mod_affection -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
                    jump mod_cheat_character
        "Max love":
             menu:
                "Add":
                    $ mod_love_max += int(renpy.input("How much to add?", allow="0123456789") or 0)
                    jump mod_cheat_character
                "Remove":
                    $ mod_love_max -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
                    jump mod_cheat_character
        "Love":
             menu:
                "Add":
                    $ mod_love += int(renpy.input("How much to add?", allow="0123456789") or 0)
                    jump mod_cheat_character
                "Remove":
                    $ mod_love -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
                    jump mod_cheat_character
        "Lust":
             menu:
                "Add":
                    $ mod_lust += int(renpy.input("How much to add?", allow="0123456789") or 0)
                    jump mod_cheat_character
                "Remove":
                    $ mod_lust -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
                    jump mod_cheat_character
        "Anger":
            $ mod_anger = 0
            jump mod_cheat_character
        "Back":
            jump mod_cheat_call_girls_stats
            
    return


label mod_cheat_call_girls_stats:
    $ mod_name = ""
            
    $ renpy.retain_after_load()
    call screen stats_girls
    if _return == "back":
        jump mod_cheat_menu
    elif _return == amy:
        $ mod_name = "Amy"
        $ mod_favor = amy.rsm[0].favor
        $ mod_affection_max = amy.rsm[0].affection_max
        $ mod_affection = amy.rsm[0].affection
        $ mod_love_max = amy.rsm[0].love_max
        $ mod_love = amy.rsm[0].love
        $ mod_lust = amy.lust
        $ mod_anger = amy.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ amy.rsm[0].favor = mod_favor
        $ amy.rsm[0].affection_max = mod_affection_max
        $ amy.rsm[0].affection = mod_affection
        $ amy.rsm[0].love_max = mod_love_max
        $ amy.rsm[0].love = mod_love
        $ amy.lust = mod_lust
        $ amy.rsm[0].anger = mod_anger

    elif _return == aly:
        $ mod_name = "Aly"
        $ mod_favor = aly.rsm[0].favor
        $ mod_affection_max = aly.rsm[0].affection_max
        $ mod_affection = aly.rsm[0].affection
        $ mod_love_max = aly.rsm[0].love_max
        $ mod_love = aly.rsm[0].love
        $ mod_lust = aly.lust
        $ mod_anger = aly.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
        
        $ aly.rsm[0].favor = mod_favor
        $ aly.rsm[0].affection_max = mod_affection_max
        $ aly.rsm[0].affection = mod_affection
        $ aly.rsm[0].love_max = mod_love_max
        $ aly.rsm[0].love = mod_love
        $ aly.lust = mod_lust
        $ aly.rsm[0].anger = mod_anger

    elif _return == alice:
        $ mod_name = "Alice"
        $ mod_favor = alice.rsm[0].favor
        $ mod_affection_max = alice.rsm[0].affection_max
        $ mod_affection = alice.rsm[0].affection
        $ mod_love_max = alice.rsm[0].love_max
        $ mod_love = alice.rsm[0].love
        $ mod_lust = alice.lust
        $ mod_anger = alice.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ alice.rsm[0].favor = mod_favor
        $ alice.rsm[0].affection_max = mod_affection_max
        $ alice.rsm[0].affection = mod_affection
        $ alice.rsm[0].love_max = mod_love_max
        $ alice.rsm[0].love = mod_love
        $ alice.lust = mod_lust
        $ alice.rsm[0].anger = mod_anger
        
    elif _return == yvette:
        $ mod_name = "Yvette"
        $ mod_favor = yvette.rsm[0].favor
        $ mod_affection_max = yvette.rsm[0].affection_max
        $ mod_affection = yvette.rsm[0].affection
        $ mod_love_max = yvette.rsm[0].love_max
        $ mod_love = yvette.rsm[0].love
        $ mod_lust = yvette.lust
        $ mod_anger = yvette.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ yvette.rsm[0].favor = mod_favor
        $ yvette.rsm[0].affection_max = mod_affection_max
        $ yvette.rsm[0].affection = mod_affection
        $ yvette.rsm[0].love_max = mod_love_max
        $ yvette.rsm[0].love = mod_love
        $ yvette.lust = mod_lust
        $ yvette.rsm[0].anger = mod_anger
        
    elif _return == heather:
        $ mod_name = "Heather"
        $ mod_favor = heather.rsm[0].favor
        $ mod_affection_max = heather.rsm[0].affection_max
        $ mod_affection = heather.rsm[0].affection
        $ mod_love_max = heather.rsm[0].love_max
        $ mod_love = heather.rsm[0].love
        $ mod_lust = heather.lust
        $ mod_anger = heather.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ heather.rsm[0].favor = mod_favor
        $ heather.rsm[0].affection_max = mod_affection_max
        $ heather.rsm[0].affection = mod_affection
        $ heather.rsm[0].love_max = mod_love_max
        $ heather.rsm[0].love = mod_love
        $ heather.lust = mod_lust
        $ heather.rsm[0].anger = mod_anger
        
    elif _return == brenda:
        $ mod_name = "Brenda"
        $ mod_favor = brenda.rsm[0].favor
        $ mod_affection_max = brenda.rsm[0].affection_max
        $ mod_affection = brenda.rsm[0].affection
        $ mod_love_max = brenda.rsm[0].love_max
        $ mod_love = brenda.rsm[0].love
        $ mod_lust = brenda.lust
        $ mod_anger = brenda.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ brenda.rsm[0].favor = mod_favor
        $ brenda.rsm[0].affection_max = mod_affection_max
        $ brenda.rsm[0].affection = mod_affection
        $ brenda.rsm[0].love_max = mod_love_max
        $ brenda.rsm[0].love = mod_love
        $ brenda.lust = mod_lust
        $ brenda.rsm[0].anger = mod_anger
            
    elif _return == desire:
        $ mod_name = "Desire"
        $ mod_favor = desire.rsm[0].favor
        $ mod_affection_max = desire.rsm[0].affection_max
        $ mod_affection = desire.rsm[0].affection
        $ mod_love_max = desire.rsm[0].love_max
        $ mod_love = desire.rsm[0].love
        $ mod_lust = desire.lust
        $ mod_anger = desire.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ desire.rsm[0].favor = mod_favor
        $ desire.rsm[0].affection_max = mod_affection_max
        $ desire.rsm[0].affection = mod_affection
        $ desire.rsm[0].love_max = mod_love_max
        $ desire.rsm[0].love = mod_love
        $ desire.lust = mod_lust
        $ desire.rsm[0].anger = mod_anger
        
    elif _return == renee:
        $ mod_name = "Renee"
        $ mod_favor = renee.rsm[0].favor
        $ mod_affection_max = renee.rsm[0].affection_max
        $ mod_affection = renee.rsm[0].affection
        $ mod_love_max = renee.rsm[0].love_max
        $ mod_love = renee.rsm[0].love
        $ mod_lust = renee.lust
        $ mod_anger = renee.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ renee.rsm[0].favor = mod_favor
        $ renee.rsm[0].affection_max = mod_affection_max
        $ renee.rsm[0].affection = mod_affection
        $ renee.rsm[0].love_max = mod_love_max
        $ renee.rsm[0].love = mod_love
        $ renee.lust = mod_lust
        $ renee.rsm[0].anger = mod_anger
        
    elif _return == delizia:
        $ mod_name = "Delizia"
        $ mod_favor = delizia.rsm[0].favor
        $ mod_affection_max = delizia.rsm[0].affection_max
        $ mod_affection = delizia.rsm[0].affection
        $ mod_love_max = delizia.rsm[0].love_max
        $ mod_love = delizia.rsm[0].love
        $ mod_lust = delizia.lust
        $ mod_anger = delizia.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ delizia.rsm[0].favor = mod_favor
        $ delizia.rsm[0].affection_max = mod_affection_max
        $ delizia.rsm[0].affection = mod_affection
        $ delizia.rsm[0].love_max = mod_love_max
        $ delizia.rsm[0].love = mod_love
        $ delizia.lust = mod_lust
        $ delizia.rsm[0].anger = mod_anger
        
    elif _return == eva:
        $ mod_name = "Eva"
        $ mod_favor = eva.rsm[0].favor
        $ mod_affection_max = eva.rsm[0].affection_max
        $ mod_affection = eva.rsm[0].affection
        $ mod_love_max = eva.rsm[0].love_max
        $ mod_love = eva.rsm[0].love
        $ mod_lust = eva.lust
        $ mod_anger = eva.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ eva.rsm[0].favor = mod_favor
        $ eva.rsm[0].affection_max = mod_affection_max
        $ eva.rsm[0].affection = mod_affection
        $ eva.rsm[0].love_max = mod_love_max
        $ eva.rsm[0].love = mod_love
        $ eva.lust = mod_lust
        $ eva.rsm[0].anger = mod_anger

    elif _return == ivy:
        $ mod_name = "Ivy"
        $ mod_favor = ivy.rsm[0].favor
        $ mod_affection_max = ivy.rsm[0].affection_max
        $ mod_affection = ivy.rsm[0].affection
        $ mod_love_max = ivy.rsm[0].love_max
        $ mod_love = ivy.rsm[0].love
        $ mod_lust = ivy.lust
        $ mod_anger = ivy.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ ivy.rsm[0].favor = mod_favor
        $ ivy.rsm[0].affection_max = mod_affection_max
        $ ivy.rsm[0].affection = mod_affection
        $ ivy.rsm[0].love_max = mod_love_max
        $ ivy.rsm[0].love = mod_love
        $ ivy.lust = mod_lust
        $ ivy.rsm[0].anger = mod_anger
        
    elif _return == faye:
        $ mod_name = "Faye"
        $ mod_favor = faye.rsm[0].favor
        $ mod_affection_max = faye.rsm[0].affection_max
        $ mod_affection = faye.rsm[0].affection
        $ mod_love_max = faye.rsm[0].love_max
        $ mod_love = faye.rsm[0].love
        $ mod_lust = faye.lust
        $ mod_anger = faye.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ faye.rsm[0].favor = mod_favor
        $ faye.rsm[0].affection_max = mod_affection_max
        $ faye.rsm[0].affection = mod_affection
        $ faye.rsm[0].love_max = mod_love_max
        $ faye.rsm[0].love = mod_love
        $ faye.lust = mod_lust
        $ faye.rsm[0].anger = mod_anger

    elif _return == lacey:
        $ mod_name = "Lacey"
        $ mod_favor = lacey.rsm[0].favor
        $ mod_affection_max = lacey.rsm[0].affection_max
        $ mod_affection = lacey.rsm[0].affection
        $ mod_love_max = lacey.rsm[0].love_max
        $ mod_love = lacey.rsm[0].love
        $ mod_lust = lacey.lust
        $ mod_anger = lacey.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ lacey.rsm[0].favor = mod_favor
        $ lacey.rsm[0].affection_max = mod_affection_max
        $ lacey.rsm[0].affection = mod_affection
        $ lacey.rsm[0].love_max = mod_love_max
        $ lacey.rsm[0].love = mod_love
        $ lacey.lust = mod_lust
        $ lacey.rsm[0].anger = mod_anger
        
    elif _return == jessica:
        $ mod_name = "Jessica"
        $ mod_favor = jessica.rsm[0].favor
        $ mod_affection_max = jessica.rsm[0].affection_max
        $ mod_affection = jessica.rsm[0].affection
        $ mod_love_max = jessica.rsm[0].love_max
        $ mod_love = jessica.rsm[0].love
        $ mod_lust = jessica.lust
        $ mod_anger = jessica.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ jessica.rsm[0].favor = mod_favor
        $ jessica.rsm[0].affection_max = mod_affection_max
        $ jessica.rsm[0].affection = mod_affection
        $ jessica.rsm[0].love_max = mod_love_max
        $ jessica.rsm[0].love = mod_love
        $ jessica.lust = mod_lust
        $ jessica.rsm[0].anger = mod_anger

    elif _return == jennifer:
        $ mod_name = "Jennifer"
        $ mod_favor = jennifer.rsm[0].favor
        $ mod_affection_max = jennifer.rsm[0].affection_max
        $ mod_affection = jennifer.rsm[0].affection
        $ mod_love_max = jennifer.rsm[0].love_max
        $ mod_love = jennifer.rsm[0].love
        $ mod_lust = jennifer.lust
        $ mod_anger = jennifer.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ jennifer.rsm[0].favor = mod_favor
        $ jennifer.rsm[0].affection_max = mod_affection_max
        $ jennifer.rsm[0].affection = mod_affection
        $ jennifer.rsm[0].love_max = mod_love_max
        $ jennifer.rsm[0].love = mod_love
        $ jennifer.lust = mod_lust
        $ jennifer.rsm[0].anger = mod_anger

    elif _return == joy:
        $ mod_name = "Joy"
        $ mod_favor = joy.rsm[0].favor
        $ mod_affection_max = joy.rsm[0].affection_max
        $ mod_affection = joy.rsm[0].affection
        $ mod_love_max = joy.rsm[0].love_max
        $ mod_love = joy.rsm[0].love
        $ mod_lust = joy.lust
        $ mod_anger = joy.rsm[0].anger
        
        $ renpy.retain_after_load()
        call mod_cheat_character
            
        $ joy.rsm[0].favor = mod_favor
        $ joy.rsm[0].affection_max = mod_affection_max
        $ joy.rsm[0].affection = mod_affection
        $ joy.rsm[0].love_max = mod_love_max
        $ joy.rsm[0].love = mod_love
        $ joy.lust = mod_lust
        $ joy.rsm[0].anger = mod_anger
        
    
    return
    
The last code that worked:

Code: Select all

label mod_cheat_menu:
    show screen made_by
    
    menu:
        "Change girls stats":
            call mod_cheat_gfavor
        "Close cheat menu":
            hide screen made_by
            python:
                renpy.return_statement()
                
    return
label mod_cheat_gfavor:
    #scene mod_cheat_menu_background
    
    menu:
        "Amy":
            $ mod_name = "Amy"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = amy.rsm[0].favor
            $ mod_affection_max = amy.rsm[0].affection_max
            $ mod_affection = amy.rsm[0].affection
            $ mod_love_max = amy.rsm[0].love_max
            $ mod_love = amy.rsm[0].love
            $ mod_lust = amy.lust
            $ mod_anger = amy.rsm[0].anger
        
            call mod_cheat_character
            
            $ amy.rsm[0].favor = mod_favor
            $ amy.rsm[0].affection_max = mod_affection_max
            $ amy.rsm[0].affection = mod_affection
            $ amy.rsm[0].love_max = mod_love_max
            $ amy.rsm[0].love = mod_love
            $ amy.lust = mod_lust
            $ amy.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor
        "Aly":
            $ mod_name = "Aly"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = aly.rsm[0].favor
            $ mod_affection_max = aly.rsm[0].affection_max
            $ mod_affection = aly.rsm[0].affection
            $ mod_love_max = aly.rsm[0].love_max
            $ mod_love = aly.rsm[0].love
            $ mod_lust = aly.lust
            $ mod_anger = aly.rsm[0].anger
        
            call mod_cheat_character
            
            $ aly.rsm[0].favor = mod_favor
            $ aly.rsm[0].affection_max = mod_affection_max
            $ aly.rsm[0].affection = mod_affection
            $ aly.rsm[0].love_max = mod_love_max
            $ aly.rsm[0].love = mod_love
            $ aly.lust = mod_lust
            $ aly.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor
        "Alice":
            $ mod_name = "Alice"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = alice.rsm[0].favor
            $ mod_affection_max = alice.rsm[0].affection_max
            $ mod_affection = alice.rsm[0].affection
            $ mod_love_max = alice.rsm[0].love_max
            $ mod_love = alice.rsm[0].love
            $ mod_lust = alice.lust
            $ mod_anger = alice.rsm[0].anger
        
            call mod_cheat_character
            
            $ alice.rsm[0].favor = mod_favor
            $ alice.rsm[0].affection_max = mod_affection_max
            $ alice.rsm[0].affection = mod_affection
            $ alice.rsm[0].love_max = mod_love_max
            $ alice.rsm[0].love = mod_love
            $ alice.lust = mod_lust
            $ alice.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor
        "Yvette":
            $ mod_name = "Yvette"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = yvette.rsm[0].favor
            $ mod_affection_max = yvette.rsm[0].affection_max
            $ mod_affection = yvette.rsm[0].affection
            $ mod_love_max = yvette.rsm[0].love_max
            $ mod_love = yvette.rsm[0].love
            $ mod_lust = yvette.lust
            $ mod_anger = yvette.rsm[0].anger
        
            call mod_cheat_character
            
            $ yvette.rsm[0].favor = mod_favor
            $ yvette.rsm[0].affection_max = mod_affection_max
            $ yvette.rsm[0].affection = mod_affection
            $ yvette.rsm[0].love_max = mod_love_max
            $ yvette.rsm[0].love = mod_love
            $ yvette.lust = mod_lust
            $ yvette.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor
        "Heather":
            $ mod_name = "Heather"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = heather.rsm[0].favor
            $ mod_affection_max = heather.rsm[0].affection_max
            $ mod_affection = heather.rsm[0].affection
            $ mod_love_max = heather.rsm[0].love_max
            $ mod_love = heather.rsm[0].love
            $ mod_lust = heather.lust
            $ mod_anger = heather.rsm[0].anger
        
            call mod_cheat_character
            
            $ heather.rsm[0].favor = mod_favor
            $ heather.rsm[0].affection_max = mod_affection_max
            $ heather.rsm[0].affection = mod_affection
            $ heather.rsm[0].love_max = mod_love_max
            $ heather.rsm[0].love = mod_love
            $ heather.lust = mod_lust
            $ heather.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor
        "Brenda":
            $ mod_name = "Brenda"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = brenda.rsm[0].favor
            $ mod_affection_max = brenda.rsm[0].affection_max
            $ mod_affection = brenda.rsm[0].affection
            $ mod_love_max = brenda.rsm[0].love_max
            $ mod_love = brenda.rsm[0].love
            $ mod_lust = brenda.lust
            $ mod_anger = brenda.rsm[0].anger
        
            call mod_cheat_character
            
            $ brenda.rsm[0].favor = mod_favor
            $ brenda.rsm[0].affection_max = mod_affection_max
            $ brenda.rsm[0].affection = mod_affection
            $ brenda.rsm[0].love_max = mod_love_max
            $ brenda.rsm[0].love = mod_love
            $ brenda.lust = mod_lust
            $ brenda.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor     
        "Desire":
            $ mod_name = "Desire"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = desire.rsm[0].favor
            $ mod_affection_max = desire.rsm[0].affection_max
            $ mod_affection = desire.rsm[0].affection
            $ mod_love_max = desire.rsm[0].love_max
            $ mod_love = desire.rsm[0].love
            $ mod_lust = desire.lust
            $ mod_anger = desire.rsm[0].anger
        
            call mod_cheat_character
            
            $ desire.rsm[0].favor = mod_favor
            $ desire.rsm[0].affection_max = mod_affection_max
            $ desire.rsm[0].affection = mod_affection
            $ desire.rsm[0].love_max = mod_love_max
            $ desire.rsm[0].love = mod_love
            $ desire.lust = mod_lust
            $ desire.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor
        "Renee":
            $ mod_name = "Renee"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = renee.rsm[0].favor
            $ mod_affection_max = renee.rsm[0].affection_max
            $ mod_affection = renee.rsm[0].affection
            $ mod_love_max = renee.rsm[0].love_max
            $ mod_love = renee.rsm[0].love
            $ mod_lust = renee.lust
            $ mod_anger = renee.rsm[0].anger
        
            call mod_cheat_character
            
            $ renee.rsm[0].favor = mod_favor
            $ renee.rsm[0].affection_max = mod_affection_max
            $ renee.rsm[0].affection = mod_affection
            $ renee.rsm[0].love_max = mod_love_max
            $ renee.rsm[0].love = mod_love
            $ renee.lust = mod_lust
            $ renee.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor
        "Previous Page":
            call mod_cheat_gfavor2
        "Next Page":
            call mod_cheat_gfavor2
        "Back":
            call mod_cheat_menu
            
    return

label mod_cheat_gfavor2:
    #scene mod_cheat_menu_background
    
    menu:
        "Delizia":
            $ mod_name = "Delizia"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = delizia.rsm[0].favor
            $ mod_affection_max = delizia.rsm[0].affection_max
            $ mod_affection = delizia.rsm[0].affection
            $ mod_love_max = delizia.rsm[0].love_max
            $ mod_love = delizia.rsm[0].love
            $ mod_lust = delizia.lust
            $ mod_anger = delizia.rsm[0].anger
        
            call mod_cheat_character
            
            $ delizia.rsm[0].favor = mod_favor
            $ delizia.rsm[0].affection_max = mod_affection_max
            $ delizia.rsm[0].affection = mod_affection
            $ delizia.rsm[0].love_max = mod_love_max
            $ delizia.rsm[0].love = mod_love
            $ delizia.lust = mod_lust
            $ delizia.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor2
        "Eva":
            $ mod_name = "Eva"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = eva.rsm[0].favor
            $ mod_affection_max = eva.rsm[0].affection_max
            $ mod_affection = eva.rsm[0].affection
            $ mod_love_max = eva.rsm[0].love_max
            $ mod_love = eva.rsm[0].love
            $ mod_lust = eva.lust
            $ mod_anger = eva.rsm[0].anger
        
            call mod_cheat_character
            
            $ eva.rsm[0].favor = mod_favor
            $ eva.rsm[0].affection_max = mod_affection_max
            $ eva.rsm[0].affection = mod_affection
            $ eva.rsm[0].love_max = mod_love_max
            $ eva.rsm[0].love = mod_love
            $ eva.lust = mod_lust
            $ eva.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor2
        "Ivy":
            $ mod_name = "Ivy"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = ivy.rsm[0].favor
            $ mod_affection_max = ivy.rsm[0].affection_max
            $ mod_affection = ivy.rsm[0].affection
            $ mod_love_max = ivy.rsm[0].love_max
            $ mod_love = ivy.rsm[0].love
            $ mod_lust = ivy.lust
            $ mod_anger = ivy.rsm[0].anger
        
            call mod_cheat_character
            
            $ ivy.rsm[0].favor = mod_favor
            $ ivy.rsm[0].affection_max = mod_affection_max
            $ ivy.rsm[0].affection = mod_affection
            $ ivy.rsm[0].love_max = mod_love_max
            $ ivy.rsm[0].love = mod_love
            $ ivy.lust = mod_lust
            $ ivy.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor2
        "Faye":
            $ mod_name = "Faye"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = faye.rsm[0].favor
            $ mod_affection_max = faye.rsm[0].affection_max
            $ mod_affection = faye.rsm[0].affection
            $ mod_love_max = faye.rsm[0].love_max
            $ mod_love = faye.rsm[0].love
            $ mod_lust = faye.lust
            $ mod_anger = faye.rsm[0].anger
        
            call mod_cheat_character
            
            $ faye.rsm[0].favor = mod_favor
            $ faye.rsm[0].affection_max = mod_affection_max
            $ faye.rsm[0].affection = mod_affection
            $ faye.rsm[0].love_max = mod_love_max
            $ faye.rsm[0].love = mod_love
            $ faye.lust = mod_lust
            $ faye.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor2
        "Lacey":
            $ mod_name = "Lacey"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = lacey.rsm[0].favor
            $ mod_affection_max = lacey.rsm[0].affection_max
            $ mod_affection = lacey.rsm[0].affection
            $ mod_love_max = lacey.rsm[0].love_max
            $ mod_love = lacey.rsm[0].love
            $ mod_lust = lacey.lust
            $ mod_anger = lacey.rsm[0].anger
        
            call mod_cheat_character
            
            $ lacey.rsm[0].favor = mod_favor
            $ lacey.rsm[0].affection_max = mod_affection_max
            $ lacey.rsm[0].affection = mod_affection
            $ lacey.rsm[0].love_max = mod_love_max
            $ lacey.rsm[0].love = mod_love
            $ lacey.lust = mod_lust
            $ lacey.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor2
        "Jessica":
            $ mod_name = "Jessica"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = jessica.rsm[0].favor
            $ mod_affection_max = jessica.rsm[0].affection_max
            $ mod_affection = jessica.rsm[0].affection
            $ mod_love_max = jessica.rsm[0].love_max
            $ mod_love = jessica.rsm[0].love
            $ mod_lust = jessica.lust
            $ mod_anger = jessica.rsm[0].anger
        
            call mod_cheat_character
            
            $ jessica.rsm[0].favor = mod_favor
            $ jessica.rsm[0].affection_max = mod_affection_max
            $ jessica.rsm[0].affection = mod_affection
            $ jessica.rsm[0].love_max = mod_love_max
            $ jessica.rsm[0].love = mod_love
            $ jessica.lust = mod_lust
            $ jessica.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor2
        "Jennifer":
            $ mod_name = "Jennifer"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = jennifer.rsm[0].favor
            $ mod_affection_max = jennifer.rsm[0].affection_max
            $ mod_affection = jennifer.rsm[0].affection
            $ mod_love_max = jennifer.rsm[0].love_max
            $ mod_love = jennifer.rsm[0].love
            $ mod_lust = jennifer.lust
            $ mod_anger = jennifer.rsm[0].anger
        
            call mod_cheat_character
            
            $ jennifer.rsm[0].favor = mod_favor
            $ jennifer.rsm[0].affection_max = mod_affection_max
            $ jennifer.rsm[0].affection = mod_affection
            $ jennifer.rsm[0].love_max = mod_love_max
            $ jennifer.rsm[0].love = mod_love
            $ jennifer.lust = mod_lust
            $ jennifer.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor2
        "Joy":
            $ mod_name = "Joy"
            $ mod_image = "intro/intro_letter.jpg"
            $ mod_favor = joy.rsm[0].favor
            $ mod_affection_max = joy.rsm[0].affection_max
            $ mod_affection = joy.rsm[0].affection
            $ mod_love_max = joy.rsm[0].love_max
            $ mod_love = joy.rsm[0].love
            $ mod_lust = joy.lust
            $ mod_anger = joy.rsm[0].anger
        
            call mod_cheat_character
            
            $ joy.rsm[0].favor = mod_favor
            $ joy.rsm[0].affection_max = mod_affection_max
            $ joy.rsm[0].affection = mod_affection
            $ joy.rsm[0].love_max = mod_love_max
            $ joy.rsm[0].love = mod_love
            $ joy.lust = mod_lust
            $ joy.rsm[0].anger = mod_anger
            jump mod_cheat_gfavor2
        "Previous Page":
            call mod_cheat_gfavor
        "Next Page":
            call mod_cheat_gfavor
        "Back":
            call mod_cheat_menu
    
    return

label mod_cheat_character:
    $ renpy.scene()
    $ renpy.show(mod_image)
    #scene mod_cheat_menu_background
 

    menu:
        "Current stats of [mod_name] :
        Favor [mod_favor] / Max affection [mod_affection_max] / Affection [mod_affection] / Max love [mod_love_max]
        / Love [mod_love] / Lust [mod_lust] / Anger [mod_anger]."
        "Favor":
             menu:
                "Add":
                    $ mod_favor += int(renpy.input("How much to add?", allow="0123456789") or 0)
                    jump mod_cheat_character
                "Remove":
                    $ mod_favor -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
                    jump mod_cheat_character
        "Max affection":
             menu:
                "Add":
                    $ mod_affection_max += int(renpy.input("How much to add?", allow="0123456789") or 0)
                    jump mod_cheat_character
                "Remove":
                    $ mod_affection_max -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
                    jump mod_cheat_character
        "Affection":
             menu:
                "Add":
                    $ mod_affection += int(renpy.input("How much to add?", allow="0123456789") or 0)
                    jump mod_cheat_character
                "Remove":
                    $ mod_affection -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
                    jump mod_cheat_character
        "Max love":
             menu:
                "Add":
                    $ mod_love_max += int(renpy.input("How much to add?", allow="0123456789") or 0)
                    jump mod_cheat_character
                "Remove":
                    $ mod_love_max -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
                    jump mod_cheat_character
        "Love":
             menu:
                "Add":
                    $ mod_love += int(renpy.input("How much to add?", allow="0123456789") or 0)
                    jump mod_cheat_character
                "Remove":
                    $ mod_love -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
                    jump mod_cheat_character
        "Lust":
             menu:
                "Add":
                    $ mod_lust += int(renpy.input("How much to add?", allow="0123456789") or 0)
                    jump mod_cheat_character
                "Remove":
                    $ mod_lust -= int(renpy.input("How much to remove?", allow="0123456789") or 0)
                    jump mod_cheat_character
        "Anger":
            $ mod_anger = 0
            jump mod_cheat_character
        "Back":
            return

Post Reply

Who is online

Users browsing this forum: Alex, Baidu [Spider], MaydohMaydoh, tincrumbs