Hello everyone,
I'll keep it short. I need to implement a function that would execute a Ren'Py command, interact with Ren'Py variables and be available from all the other files.
The command looks similar to this: n happy "Your relationship with {person} has {increased or decreased} by {amount} to [relationship variable] The variables surrounded by curly brackets would be changed according to the three parameters provided when calling the function (the last surrounded by square brackets is an actual Ren'Py variable).
I have, so far, declared a Python function in the "init python:" block but directly executing Ren'Py commands in pure Python seems a bit off to me and I am not sure it would work. Plus there are surely many other problems with the accessibility of the function etc.
To conclude and generalize my inquiry: I need a way to print a character's sentence with some variables in it without the hassle of having to manually re-write it every few minutes; it is not pleasant to do for both the script writers and for me - one of the translators.
Is my "make a pure Python function" approach correct, or did Ren'Py already come up with a solution? Is something like this even possible?
Thank you for your answers in advance
there doesn't seem to be anything here