hello, I'm new in renpy&python programming.
I want to ask if there is another way to input a string besides using renpy.input? maybe ui.input or ui.inputtextbox.
I want to set character name like in clannad(they using text boxes for first and family name), but I cant find text box.
if I use renpy.input, I must add at least 1 argument like this: $ name = renpy.input("question?").
thanks
[Q]String input besides renpy.input
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.
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.
-
- Eileen-Class Veteran
- Posts: 1265
- Joined: Fri Aug 31, 2007 7:02 am
- Projects: 0 completed game. Still haven't made any meaningfully completed games...
- Contact:
Re: [Q]String input besides renpy.input
I don't think there anything other than renpy.inputNandaka wrote:I want to ask if there is another way to input a string besides using renpy.input? maybe ui.input or ui.inputtextbox.
This means you'll just have to ask the player twice.
Code: Select all
$ family = renpy.input("What is your family name?" ) or "J"
$ name = renpy.input("What is your last name?") or "Quartz"
$ full=family +' '+ name
full 'My name is %(full)s.'
full 'If you are close to me you may call me %(name)s.'
full 'Else it would be Mr. %(family)s to you.'
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.
Re: [Q]String input besides renpy.input
It *would* be nice to have input textboxes though ^^;
Re: [Q]String input besides renpy.input
is it possible to use native python textbox (if there is any)? if I'm not wrong, some program using python in windows(i.e bittornado) is using python language is have textboxes. can we use that?
too bad I dont know about python language >.<
or
is it possible to have 2 renpy.input in the same time? so I can use that to replace the textbox.
for now I'm using JQuartz solutions
thank you
too bad I dont know about python language >.<
or
is it possible to have 2 renpy.input in the same time? so I can use that to replace the textbox.
for now I'm using JQuartz solutions
thank you
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: [Q]String input besides renpy.input
The answer is no. There's no such thing as a "native python textbox". Python can interface to various GUI toolkits, like Tkinter, GTK, WX, Windows, and so on... but there's no single one, and none of them work with pygame, which is what Ren'Py is based on.
An improved input displayable is on the horizon, but probably won't be out before the next release.
An improved input displayable is on the horizon, but probably won't be out before the next release.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Who is online
Users browsing this forum: Bing [Bot], Majestic-12 [Bot]