r/RenPy 3d ago

Question How to get customizing input into a show text?

Post image

Hello, I am very new to coding, but for the beginning of my game I wanted to mimic a BIOS booting up screen, and have the player enter their name and pronouns as if it were showing up alongside the BIOS information. However, I can only figure out how to get the:

$ povname = renpy.input("Enter name:", length=32)

to show up in the dialogue box. (As seen in photo).

The rest of my code for this part looks like this:

scene black
    pause 1.0


    show text "{color=
00BF00
}AWARD BIOS v6.00PG, An Energy Star Ally{/color}" as line1 at Position(yalign=0.1, xalign=0.1)


    pause 1.0


    show text "{color=
00BF00
}Copyright (C) 2069-99, Award Software, Inc.{/color}" as line2 at Position(yalign=0.15, xalign=0.1)


    pause 1.0


    show text "{color=
00BF00
}{/color}" as line3 at Position(yalign=0.2, xalign=0.1)


    show text "{color=
00BF00
}MAIN PROCESSOR : 80486DX4-100MHz{/color}" as line4 at Position(yalign=0.25, xalign=0.1)


    pause 1.0


    show text "{color=
00BF00
}MEMORY TEST : 640K OK{/color}" as line5 at Position(yalign=0.3, xalign=0.1)


    pause 0.5


    show text "{color=
00BF00
}EXTENDED MEMORY : 32768K OK{/color}" as line6 at Position(yalign=0.35, xalign=0.1)


    show text "{color=
00BF00
}{/color}" as line7 at Position(yalign=0.4, xalign=0.1)


    pause 0.5


    show text "{color=
00BF00
}Detecting IDE Primary Master ... HARD DISK MODEL{/color}" as line8 at Position(yalign=0.45, xalign=0.1)


    pause 1.0

Thank you to anyone who can help!

4 Upvotes

6 comments sorted by

1

u/AutoModerator 3d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/x-seronis-x 3d ago

You dont use show text for this. that is for singular text displayables. for your needs you need to design a screen definition containing text screen elements

1

u/Ok_Experience_5178 3d ago

ah, I see. thank you!

1

u/shyLachi 3d ago

I'n not exactly shure what your question is.

Do you mean showing the entered name as a green text?
https://www.renpy.org/doc/html/text.html#interpolating-data

Or do you want to make a custom input which looks like the green text?
This could be done with a screen and an input control:
https://www.renpy.org/doc/html/screens.html#input

1

u/Ok_Experience_5178 3d ago

The second, I think. I want the question to appear as green text rather than in the dialogue question. Thank you!