Renpy.Input function default showing [u'string'] instead of just the string text. (solved)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
henvu50
Veteran
Posts: 337
Joined: Wed Aug 22, 2018 1:22 am
Contact:

Renpy.Input function default showing [u'string'] instead of just the string text. (solved)

#1 Post by henvu50 »

EDIT: i solved it, remove the brackets, default=name1_default

Code: Select all

default name1_default = "bob"

$ name1 = renpy.input("choose name", length=12, default=[name1_default])
$ name1 = name1.strip()
$ name1 = name1.title()
renpy.input is populated with [u'bob'] instead of just bob

EDIT: i solved it, remove the brackets, default=name1_default

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]