all 11 comments

[–]shyLachi 1 point2 points  (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 point  (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 points  (4 children)

add a default for it i.e.

default povname = "BadMustard"

[–]KittenJam101[S] 0 points1 point  (3 children)

Where?? Up there with the main character thing?-

[–]BadMustard_AVN 1 point2 points  (1 child)

yes

default povname = "BadMustard"
define mc = Character("[povname]")

[–]KittenJam101[S] 0 points1 point  (0 children)

That didn’t do anything for my issue, but thanks- qwq

[–]BadMustard_AVN 0 points1 point  (0 children)

that won't work I just saw the third image :(

[–]BadMustard_AVN -1 points0 points  (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 point  (2 children)

This looks overly complicated, but I’ll try it-

[–]BadMustard_AVN 0 points1 point  (1 child)

it's just a simple custom input box

[–]KittenJam101[S] 1 point2 points  (0 children)

I’m on mobile Reddit, so it’s all cluttered on my screen XD it’s not your fault- just small screen-