Page 1 of 1

[solved] call screen variable?

Posted: Thu Mar 14, 2019 4:19 am
by Arisae
In the label, when use call screen, is there a way that use variable value to the screen name?
In the screen, we can use variable to screen name but I can't imagine how to use variable to the screen name with call screen in the label.

Thanks,

Lee Yunseok

Re: call screen variable?

Posted: Thu Mar 14, 2019 5:29 am
by Remix
$ var = "my_screen"
call expression var

https://www.renpy.org/doc/html/label.ht ... -statement

Re: call screen variable?

Posted: Thu Mar 14, 2019 6:16 pm
by Arisae
Remix wrote:
Thu Mar 14, 2019 5:29 am
$ var = "my_screen"
call expression var

https://www.renpy.org/doc/html/label.ht ... -statement
But it calls the label. I want to screen.

Re: call screen variable?

Posted: Thu Mar 14, 2019 8:01 pm
by Remix
Oops, I didn't spot you were talking about screens:

$ renpy.call_screen( var )

Re: call screen variable?

Posted: Fri Mar 15, 2019 1:47 am
by Arisae
Remix wrote:
Thu Mar 14, 2019 8:01 pm
Oops, I didn't spot you were talking about screens:

$ renpy.call_screen( var )
It works well. Thank you Remix!