Is there a way to turn compress multiple lines into a single command?
So I have a few lines of code made to bring in the game's HUD
'''
show screen moneycounter
show moneycounter
show ui morningtime
show screen heartmenu
show screen bedskip
with easeintop
'''
The problem is I want to copy this into multiple parts of the game without cluttering up the space, and I also want a slightly different version that hides the screens by easing them out.
Is there a good way to turn this and the hide version into a single command?
I previously tried with this:
''' python: def showui(): renpy.call_screen(moneycounter) renpy.show ("moneycounter") renpy.show ("ui morningtime") renpy.call_screen(heartmenu) renpy.call_screen(bedskip) renpy.easeintop '''
But it caused a lot of problems so I deemed this method not worth it.
Please let me know if there's an easier way.
Posted Dec 1, 2025, 8:22 PM UTC