Can someone tell me what's the best way to put together a 'call screen' statement with conditional arguments?
Let's say a screen accepts multiple arguments, but depending on your progress in the story you would only be sending certain ones to it. So in my head, where things work with the power of magic and happiness, it looks like something like this:
Code: Select all
$ renpy.call (MYSCREEN, "arg1, arg2" + if abc (", arg3, arg4") + if xyz (", arg5, arg6"))
** Right now my solution is:
Code: Select all
if xyz:
call screen MYSCREEN (arg1,arg2,arg3,arg4,arg5,arg6)
elif abc:
call screen MYSCREEN (arg1,arg2,arg3,arg4)
else:
call screen MYSCREEN (arg1,arg2)