Search found 1926 matches
- Fri Mar 22, 2024 7:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: Ren'Py or Adventure Game Studio for Point-and-Click/VN Hybrid?
- Replies: 2
- Views: 1281
Re: Ren'Py or Adventure Game Studio for Point-and-Click/VN Hybrid?
1. Branching dialogue trees, with the ability to remove options once read, return to previous topics, and have in-game variables dependent upon choices made. 2. Objects in the background/room that can be hidden or shown on command (e.g., character images which would transition to the dialogue view ...
- Sun Mar 03, 2024 7:46 pm
- Forum: Ren'Py Questions and Announcements
- Topic: I fail at forcing Ren'Py to save the changes in a screen (mid-interaction)
- Replies: 7
- Views: 414
Re: I fail at forcing Ren'Py to save the changes in a screen (mid-interaction)
First of all, none of that should be in a screen - screens run multiple times for prediction and that will break horrendously. I don't understand what you're trying to do based on your post (in an X/Y Problem sort of way). Can you explain, simply, what you are trying to do? What is the relation betw...
- Mon Feb 12, 2024 12:42 am
- Forum: Ren'Py Questions and Announcements
- Topic: No attribute "name" error in inventory[SOLVED]
- Replies: 2
- Views: 343
Re: No attribute "name" error in inventory
You're adding "goldc", a string, not goldc, the item.
- Mon Feb 12, 2024 12:40 am
- Forum: Ren'Py Questions and Announcements
- Topic: How do I make a shelf, with multiple random items, each an image button?
- Replies: 17
- Views: 1700
Re: How do I make a shelf, with multiple random items, each an image button?
https://www.renpy.org/doc/html/screens.html beginning with the paragraph that starts "A screen has a scope associated with it, giving values to some variables..."
- Thu Feb 08, 2024 8:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: How do I make a shelf, with multiple random items, each an image button?
- Replies: 17
- Views: 1700
Re: How do I make a shelf, with multiple random items, each an image button?
That's what vboxes do - they automatically stack buttons, which is useful for testing when I don't want to faff around with button locations, just to check that they're there and working. There are a lot of ways to approach what you want, but the simplest is just using a variable to show or not show...
- Wed Feb 07, 2024 10:40 am
- Forum: Ren'Py Questions and Announcements
- Topic: How do I make a shelf, with multiple random items, each an image button?
- Replies: 17
- Views: 1700
Re: How do I make a shelf, with multiple random items, each an image button?
From what you've described of your system, I would say there's little need to shuffle lists (that's a good randomizer if you need non-repeating exhaustive random, but if not, you can get by just as easily with random ints). Disclaimer: The following was fly typed and could contain errors, but it's m...
- Mon Jan 22, 2024 10:04 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Make it so you can't put a space when writing your name.
- Replies: 2
- Views: 554
Re: Make it so you can't put a space when writing your name.
You can limit the characters allowed in input using the allow keyword. https://www.renpy.org/doc/html/input.html
- Mon Jan 22, 2024 10:03 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Changing Transform with Variable
- Replies: 2
- Views: 519
Re: Changing Transform with Variable
You can simply show the image again to update, but I would probably parameterize it to be clearer. transform test_transform(direction=True): # direction: True for right (accepted), False for left (rejected) xalign 0.5 yalign 0.5 on hide: linear 0.5 xoffset (200 if direction else -200) label start: $...
- Wed Jan 17, 2024 4:26 am
- Forum: Ren'Py Questions and Announcements
- Topic: Classes only partially saving?
- Replies: 5
- Views: 1427
Re: Classes only partially saving?
Again, impossible to say because you won't post all the relevant code but basically the error is saying there's an issue referring to an instance of a Material() class object. I would guess that you didn't default it, but that's just guessing.
- Tue Jan 16, 2024 11:15 am
- Forum: Ren'Py Questions and Announcements
- Topic: Classes only partially saving?
- Replies: 5
- Views: 1427
Re: Classes only partially saving?
It's hard to say what the problem is without knowing all of what you're doing (for instance, how are you defining/defaulting your variables), but since I was bored tonight I set up a little test structure for a simple ingredient/recipe system. Unlikely that it will fit all your needs out of the bag,...
- Thu Dec 14, 2023 2:01 am
- Forum: Ren'Py Questions and Announcements
- Topic: See AnimatedValue bar's changing value?
- Replies: 4
- Views: 5057
Re: See AnimatedValue bar's changing value?
Lol I didn't realize you were the same person. I was referring also to Remix's Extra AnimatedValue library which you linked in that question -- that extends AnimatedValue to access the current value of the AnimatedValue and output it as text, which seems like what you are asking for.
- Thu Dec 14, 2023 12:28 am
- Forum: Ren'Py Questions and Announcements
- Topic: See AnimatedValue bar's changing value?
- Replies: 4
- Views: 5057
Re: See AnimatedValue bar's changing value?
You can find some examples around the forums on animating number values. e.g. viewtopic.php?t=66563
- Tue Oct 31, 2023 2:18 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Using a string as an attribute
- Replies: 2
- Views: 1593
Re: Using a string as an attribute
I assume you're going to need to rethink a bunch of architecture assumptions, but assuming that the modifier only increments whatever the attribute is by +1 for all modifiers (e.g., modifier.modify = "size" changes item.size to +1 of whatever it was) def use_modifier(item, modifier): initi...
- Fri Aug 25, 2023 6:58 pm
- Forum: Ren'Py Questions and Announcements
- Topic: I CLICK IN ONE ITEM BUT ALL ITEMS ARE HIGHLIGHTED ON THE LIST
- Replies: 7
- Views: 632
Re: I CLICK IN ONE ITEM BUT ALL ITEMS ARE HIGHLIGHTED ON THE LIST
There are a lot of ways you can approach this but off the top of my head 1) you can try the selected (https://www.renpy.org/doc/html/screens.html#button ) keyword to manually set whether something is selected, or 2) use or otherwise incorporate the currentQuest_screen in the playerJournalQuestsSide ...
- Sat Jul 29, 2023 10:08 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Drag and Drop and multiple variables
- Replies: 3
- Views: 377
Re: Drag and Drop and multiple variables
Conceptually, the way I've handled this in the past is using a list or other data structure for setting the order + handling whether that order is correct separately. init python: runes_list = [None] * 5 def piece_dragged(drags, drop): global runes_list drag_name = drags[0].drag_name drop_name = dro...