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.
I work on my inventory this time.
I have an inventory label and at the end of the bisness i want the player go back at his precedent label.
So i made this :
$ lieu_actu is the precedant imagemap label name
I try this to :
- jump $ lieu_actu
- jump lieu_actu
- jump "%lieu_actu s"
- jump label "%lieu_actu s"
jump statement accept name of the label. Not the string containing name of the label, not something else.
Instead of trying to trow something and hope it will work (even if you succeeed, in programming, if something appears to work, and you cannot prove that it should work that way, it might stop working when you turn your back to it.), you should read the documentation. https://www.renpy.org/doc/html/label.ht ... -statement
Documentation wrote:if the expression keyword is present, the expression following it is evaluated, and the string so computed is used as the name of the label to call.
So in your case, your statement should look like jump expression lieu_actu
Oh !
For the record, i read a lot documentation and other post, but sometime, like this stuff, i dont find.
yes i'm wizard apprentice, i try a lot of things, if its work, i try to do it clean, but a lot of time, i juste take some code and try to appropriate it for my need.
I will try like this.
thanks a lot.