
I create a small script as below (complete script attached):
***********************
define Values_used = ["aaaa", "bbbb", "cccc", "dddd"] # inserted line
define Values_idx = [0, 5, 10, 20] # inserted line
# The game starts here.
label start:
$ idx = 10 # inserted line
$ idx1 = 2 # inserted line
"[Values_idx[idx1]]" # inserted line
"[Values_used[Values_idx.index(idx)]]" # inserted line
**********************
Runs perfectly fine (at least with Renpy 8.3.7)
but if I insert the 6 relevant lines in the very beginning (just after start label) of an existing (heavy) script (which runs perfectly fine without modification) I get this exception...
"TypeError: list indices must be integers or slices, not str"
Someone has an idea?
Please share it!

Thanks