The problem is really simple... we have a string, and want to unpack all the words in it using split.
Something like this:
Code: Select all
b = renpy.input("Type a string")
c, d = b.split(" ")
Code: Select all
b = renpy.input("Type a string")
c, *trash, d = b.split(" ")
But when I do the same thing in Ren'Py using a python block, or even a $ sentence, it raises an error. "Parsing the script failed. Invalid syntax".
I would like to know if Ren'Py parses Python code somehow before the Python interpreter itself, or if it passes everything in the python block to the interpreter, and then handle potential errors.
I believe it is the first option, since this feature exists since Python 3.0, and if that's the case, I would like to know if it's possible to include that in the next update.
Sorry for all the trouble.