1/ Where do I put the define config.replay_scope ?
Wherever you want. It's a configuration variable, declared with
You must be registered to see the links
. Therefore the value will be assigned at init time, like said by the doc.
2/ should I put the variables under "" or not?
It depend, are they
You must be registered to see the links
?
I don't get why in the examples upstairs the numbers are defined as text under " ", for me it would be logical that they remain as numbers
I just copied the values as OP gave them. And since one ("tonysex") is expressed as integer, I assume that the others have a good reason to be strings.
3/ In my replay scenes, the MC is always called [player] no matter what I do, how to transfer the chosen nickname to the replay as well?
It don't works because there's three errors in your
"player": "[player]"
. It will feel relatively obvious for those who'll see what are the errors, but explaining them is something else...
When you put something between brackets into a screen, for Ren'Py it mean that it will have to perform an
You must be registered to see the links
. It will be replace this part of the text by the value stored in the variable which name is between the brackets. Therefore here, your "[player]" mean, "hey, Ren'Py, here put the value of the variable named
player".
So, the first error is to use this syntax when you assign a value to "player" ; technically you are defining a string, not a text to display.
The second error is the (relative) circular reference that you are creating.
You define the character like this
define x = Character("[player]", [...])
. Then you give to "player" the value "[player]"...
What mean that you're asking Ren'Py to replace "[player]" by the value of the variable "player" ; value that Ren'Py would have to replace by the value of "player" if it was doing recursive interpolation (what is possible but by chance not the behavior by default).
The third error is purely logical. You're trying to assign its own value to a variable ; what you wanted to do should have been wrote
"player": player
to works, and then the uselessness of this part would become more than obvious.
4/ I don't understand what I should write in this function to transfer the variables to the replay scenes :
action Replay("END_A", scope={}, locked=None)
The
You must be registered to see the links
dictionary exist precisely so that you don't have to assign variables when you start the replay.
But if really you need to assign a particular variables, then it's
You must be registered to see the links
that you've to do it.
I would appreciate it very much if I could get answers using code examples (and not theoretical explanations like sadly Renpy.Org tends to do),
I haven't provided code examples, and there's a really significant reason for this: your
"player": "[player]"
error.
It clearly show that you just copy/paste code without taking the time to understand what it's doing. And I say "clearly", because the errors in it are really something obvious.
While probably many would have missed it in your code (cognitive bias: "I already have difficulty debugging my code, so I don't have the level to debug someone else code"), in their own code they would have quickly understood what was wrong. You copied the part of the
Character
declaration, just knowing that it's how it should be wrote, but without knowing why it's wrote that way. Else you wouldn't have used this syntax, and quickly came to the conclusion that you're assign a variable to itself.
So, I answered your questions, in a way that is relatively easy to understand, and while providing the corresponding link to the documentation. The rest is up to you, and just you.
because I don't know if any of you could manage to understand and code something from just this (if you did, you must be a genius ^^).
There's 4166 games made by Ren'Py available just here. Half of them, if not more, are made by people like you, who had no coding knowledge prior to this. So, I guess that they manage to understand and code something just from the doc ; with sometime some external help when it come to effectively technical parts.
And I doubt that they are all genius. They just take the time to think about what they read, what it can mean, and try to see if they understood it correctly. While I'm among the firsts to admit that the documentation is clearly wrote for people who have at least a basic knowledge in coding, most of it is also not too difficult to understand ; nothing that few minutes of trial and error codding can't fix.
After near to five years providing help here, I can affirm that the most common issue regarding Ren'Py is "not knowing that 'this' is possible", and not "how the hell this thing works".