Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

My game fails whenever I use the replay gallery as it doesn't remember my mcname, here is my code

$ mcname = renpy.input("What is your name?", default="Daniel")

    $ mcname == mcname.strip()

    if mcname == "":

        $mcname = "Daniel"

Do you know how to fix this?

I'm going to assume this code is in your script for entering the character's name during the game...

first try it like this

$ mcname = renpy.input("What is your name?", default="Daniel").strip() or "Daniel"

$ persistent.name = mcname

then in your code at the labels for the replay do this

label replayLabelHowOriginal:

            if _in_replay:

                show screen Replayexit #the optional exit provided with the gallery

                $ mcname = persistent.name #see what I did there...


that should fix your problem

You are the GOAT of renpy <3

(+1)

I am just a well practiced idiot...