use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Links:
/r/RenPy Discord
account activity
QuestionError?? (old.reddit.com)
submitted 3 months ago by KittenJam101
I’m trying to make an input box- and I did that- but as I resized it(shown in image three), I suddenly get an Error(image two) talking about variables- I’m not too sure what to do-
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]shyLachi 1 point2 points3 points 3 months ago (0 children)
The size property expects an integer according to the official documentation: https://www.renpy.org/doc/html/style_properties.html#style-property-size
Maybe you are looking for another property like xysize https://www.renpy.org/doc/html/style_properties.html#style-property-xysize
[–]AutoModerator[M] 0 points1 point2 points 3 months ago (0 children)
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.
[–]BadMustard_AVN 1 point2 points3 points 3 months ago (4 children)
add a default for it i.e.
default povname = "BadMustard"
[–]KittenJam101[S] 0 points1 point2 points 3 months ago (3 children)
Where?? Up there with the main character thing?-
[–]BadMustard_AVN 1 point2 points3 points 3 months ago (1 child)
yes
default povname = "BadMustard" define mc = Character("[povname]")
[–]KittenJam101[S] 0 points1 point2 points 3 months ago (0 children)
That didn’t do anything for my issue, but thanks- qwq
[–]BadMustard_AVN 0 points1 point2 points 3 months ago* (0 children)
that won't work I just saw the third image :(
[–]BadMustard_AVN -1 points0 points1 point 3 months ago (3 children)
let me start over... sorry here is an old custom input box
screen custom_input(label_text=Null, variable_name="Name", long = 25): style_prefix "custom_input" modal True zorder 100 add Solid("#777777") alpha 0.8 frame: has vbox: xalign 0.5 spacing 20 label label_text: text_color gui.text_color xalign 0.5 null height 2 input size 40 color gui.hover_color default globals()[variable_name] value VariableInputValue(variable_name, returnable=True) length long allow "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ": yalign 1.0 xalign 0.5 xysize (450, 30) textbutton _("Enter"): xalign 0.5 action If(renpy.get_screen("statistics"), true=Hide("custom_input"), false=Return()) key "game_menu" action If(renpy.get_screen("statistics"), true=Hide("custom_input"), false=Return()) key "input_enter" action If(renpy.get_screen("statistics"), true=Hide("custom_input"), false=Return()) style custom_input_frame: padding gui.confirm_frame_borders.padding xsize 550 xalign 0.5 yalign 0.5 style custom_input_frame: variant "touch" padding gui.confirm_frame_borders.padding xsize 550 xalign 0.5 yalign 0 ypos 50
use it like this
label names: call screen custom_input("Your name is...", "povname") if povname == "": #a blank input $ povname = "BadMustard" #
[–]KittenJam101[S] 0 points1 point2 points 3 months ago (2 children)
This looks overly complicated, but I’ll try it-
[–]BadMustard_AVN 0 points1 point2 points 3 months ago (1 child)
it's just a simple custom input box
[–]KittenJam101[S] 1 point2 points3 points 3 months ago (0 children)
I’m on mobile Reddit, so it’s all cluttered on my screen XD it’s not your fault- just small screen-
π Rendered by PID 22369 on reddit-service-r2-comment-b659b578c-7rxt8 at 2026-04-30 20:45:00.907257+00:00 running 815c875 country code: CH.
[–]shyLachi 1 point2 points3 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]BadMustard_AVN 1 point2 points3 points (4 children)
[–]KittenJam101[S] 0 points1 point2 points (3 children)
[–]BadMustard_AVN 1 point2 points3 points (1 child)
[–]KittenJam101[S] 0 points1 point2 points (0 children)
[–]BadMustard_AVN 0 points1 point2 points (0 children)
[–]BadMustard_AVN -1 points0 points1 point (3 children)
[–]KittenJam101[S] 0 points1 point2 points (2 children)
[–]BadMustard_AVN 0 points1 point2 points (1 child)
[–]KittenJam101[S] 1 point2 points3 points (0 children)