[Q]String input besides renpy.input

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
Nandaka
Newbie
Posts: 4
Joined: Sat Dec 29, 2007 8:39 am
Contact:

[Q]String input besides renpy.input

#1 Post by Nandaka »

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

JQuartz
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

#2 Post by JQuartz »

Nandaka wrote:I want to ask if there is another way to input a string besides using renpy.input? maybe ui.input or ui.inputtextbox.
I don't think there anything other than renpy.input
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.

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: [Q]String input besides renpy.input

#3 Post by monele »

It *would* be nice to have input textboxes though ^^;

Nandaka
Newbie
Posts: 4
Joined: Sat Dec 29, 2007 8:39 am
Contact:

Re: [Q]String input besides renpy.input

#4 Post by Nandaka »

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

User avatar
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

#5 Post by PyTom »

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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot]