Remix, I'm going to disagree on this one!
According to the docs:
https://www.renpy.org/doc/html/screen_actions.html#Show
Code: Select all
Show(screen, transition=None, *args, **kwargs) link
You can use pass additional arguments and keyword arguments. So in your example OP this should work:
Code: Select all
action Show("test2", pic1) # you showed us a screen called test2 not screen2
If it doesn't, then you should definitely get it work adding the keyword for the parameters:
OP: Just to clarify, you don't need to give your screen / function parameters different parameter names (pic1 in test1, pic2 in test2). Parameters are treated as "local variables" and not global, which means within the screen, your parameter name is safe to be used without colliding with any global variables with the same name. Try just using
pic as the parameter names and you'll see the code works fine - and you'll save yourself managing a load of different variable names for every screen / function you create