I am not sure what exactly do you want.
If you want an input field within screen, there is an input screen statement and multitude of InputValues to update different kinds of variables.
If you need something else, tell exactly what do you want.
Search found 1882 matches
- Fri Oct 14, 2022 5:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Please show me an example of 'input' to call inside the 'screen'
- Replies: 4
- Views: 212
- Sun Oct 09, 2022 5:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to disable NVL choices and keep the ADV? and adjust the position of ADV?
- Replies: 2
- Views: 239
Re: How to disable NVL choices and keep the ADV? and adjust the position of ADV?
That is strange. It should not do that. Only one should be shown.
Anyway, add define menu = nvl_menu to your script. This should solve it.
Anyway, add define menu = nvl_menu to your script. This should solve it.
- Sun Oct 09, 2022 4:54 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Making a character say a random element from a list
- Replies: 2
- Views: 210
Re: Making a character say a random element from a list
# We are returning chosen sentence instead of setting local variable def choose_small_talk(name): if name in met_not_acquainted: return renpy.random.choice(adam_small_talk_1) return renpy.random.choice(adam_small_talk_0) # . . . # You can use either: $ a( choose_small_talk("some_name") ) # or this,...
- Sun Oct 09, 2022 4:48 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Warning: changing the mouse cursor
- Replies: 1
- Views: 196
Re: Warning: changing the mouse cursor
... which is literally how you are supposed to do that, this method is described in the original documentation: https://www.renpy.org/doc/html/mouse.html I do not know how you got to the first version, but it wasn't supposed to work for at least a few years. Any appearances of this to work are just ...
- Sat Oct 08, 2022 5:27 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]How can I check if list contains an item?
- Replies: 2
- Views: 228
Re: How can I check if list contains an item?
Code: Select all
#checks if item is in list:
if item in list:
pass
else:
pass
# check if item not in list
if item not in list:
pass
- Thu Oct 06, 2022 5:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Taking out random items from list?
- Replies: 2
- Views: 219
Re: Taking out random items from list?
Code: Select all
# Do you want to pick up a random item and leave it in container?
$ item = renpy.random.choice(container)
# Do you want to pick random item and remove it?
$ renpy.random.shuffle(container) # Once at the beginning
# . . .
$ item = container.pop()
- Wed Oct 05, 2022 11:07 am
- Forum: Ren'Py Questions and Announcements
- Topic: Rock band scenario - could this be made in Ren'Py ? ❤
- Replies: 4
- Views: 279
Re: Rock band scenario - could this be made in Ren'Py ? ❤
Looks like pretty straightforward Princess Maker like game. If you want, you can check Long Live the Queen, which is RenPy-based game with a lot of similarities with what you describe: https://cdn.cloudflare.steamstatic.com/steam/apps/251990/ss_4c412aa10a8697215f616c85e896eeb5a8810a5c.1920x1080.jpg ...
- Tue Oct 04, 2022 7:49 am
- Forum: Ren'Py Questions and Announcements
- Topic: Posibility to check certain conditions before player can add points?
- Replies: 4
- Views: 260
Re: Posibility to check certain conditions before player can add points?
I prefer to wrap data which should be handled in a specific way in classes, so it simply couldn't accidentally be handled wrong. I cannot forget to update or clamp value, because everything is done automatically: init python: class Attribute: def __init__(self, titles, attribute_min=0, attribute_max...
- Mon Oct 03, 2022 6:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Calling more than one screen
- Replies: 2
- Views: 233
Re: Calling more than one screen
In short, no. call screen some_screen in reality is just roughly: show screen some_screen(_transient=True) $ ui.interact() Transient screens (and everything on transient layer) are automatically hidden after any interaction. That includes running an action as a response to button press. Second scree...
- Mon Oct 03, 2022 11:23 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to center multiple lines of text on a screen [SOLVED]
- Replies: 2
- Views: 235
Re: How to center multiple lines of text on a screen
https://www.renpy.org/doc/html/style_properties.html#text-style-properties text_align - float This is used when a line is shorter than the width of the text displayable. It determines how much of the extra space is placed on the left side of the text. (And hence, the text alignment.) 0.0 will yield ...
- Sat Oct 01, 2022 5:23 am
- Forum: Ren'Py Questions and Announcements
- Topic: How can I make if statement work while a hardpause is happening
- Replies: 4
- Views: 243
Re: How can I make if statement work while a hardpause is happening
Those are two different parts of code. One is a screen definition and should be outside of any label and other RenPy script. The second is just the part of script intended to replace yours. A complete code you can test in new project by replacing script.rpy content with this: # Reusable screen captu...
- Sat Oct 01, 2022 5:09 am
- Forum: Ren'Py Questions and Announcements
- Topic: custom screen alpha blended according to alphamask
- Replies: 2
- Views: 258
Re: custom screen alpha blended according to alphamask
All screen elements take at property which allows to apply arbitrary (including immideately-defined) transforms. alpha is a valid transform property. You cannot apply transform to the screen itself, but you can explicitely create a root fixed element (which usually is created implicitely) and apply ...
- Sat Oct 01, 2022 4:54 am
- Forum: Ren'Py Questions and Announcements
- Topic: How can I make if statement work while a hardpause is happening
- Replies: 4
- Views: 243
Re: How can I make if statement work while a hardpause is happening
# Reusable screen capturing input. Expects following arguments # button - keysym to press: https://www.renpy.org/doc/html/keymap.html # target - label to jusmp if answer is correct # incorrect_target - optional, label to jump if not answered correctly before timeout # time - timeout. After it scree...
- Thu Sep 29, 2022 2:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: defining style via python with different parent than style.default
- Replies: 5
- Views: 266
Re: defining style via python with different parent than style.default
Try Style("whatever") instead. If it fails too, use default style and call .set_patent later.
- Thu Sep 29, 2022 2:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: defining style via python with different parent than style.default
- Replies: 5
- Views: 266
Re: defining style via python with different parent than style.default
What happens if you use 5 as init priority for Python code?