Search found 1900 matches

by philat
Thu Mar 28, 2024 12:25 am
Forum: Ren'Py Questions and Announcements
Topic: Tooltip on mouse cursor and custom UI?
Replies: 2
Views: 44

Re: Tooltip on mouse cursor and custom UI?

Last I checked this still works - or at least should provide guidance towards getting where you want. viewtopic.php?t=47205
by philat
Wed Mar 27, 2024 10:01 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Dialogue that differs from a menu choice
Replies: 3
Views: 111

Re: [SOLVED] Dialogue that differs from a menu choice

It's all good, everyone's new at one point. Good luck with your game.
by philat
Wed Mar 27, 2024 10:00 pm
Forum: Ren'Py Questions and Announcements
Topic: Having problems with classes, trying to create turn based combat with random enemies
Replies: 4
Views: 97

Re: Having problems with classes, trying to create turn based combat with random enemies

Honestly, I would simply put the game down and go study a python OOP course. Barring that, at least another working example. (e.g., viewtopic.php?t=59747 )
by philat
Mon Mar 25, 2024 10:31 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Dialogue that differs from a menu choice
Replies: 3
Views: 111

Re: Dialogue that differs from a menu choice

From what I've learned thus far (admittedly not much), the default behavior seems to have the player simply say what the option says verbatim. Not really. In the example in the documentation, "Drink coffee" is the text displayed as a choice. "I drink the coffee, and it's good to the ...
by philat
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: 141

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 ...
by philat
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: 279

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...
by philat
Mon Feb 12, 2024 12:42 am
Forum: Ren'Py Questions and Announcements
Topic: No attribute "name" error in inventory[SOLVED]
Replies: 2
Views: 307

Re: No attribute "name" error in inventory

You're adding "goldc", a string, not goldc, the item.
by philat
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: 1561

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..."
by philat
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: 1561

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...
by philat
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: 1561

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...
by philat
Mon Jan 22, 2024 10:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Changing Transform with Variable
Replies: 2
Views: 472

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: $...
by philat
Wed Jan 17, 2024 4:26 am
Forum: Ren'Py Questions and Announcements
Topic: Classes only partially saving?
Replies: 5
Views: 1130

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.
by philat
Tue Jan 16, 2024 11:15 am
Forum: Ren'Py Questions and Announcements
Topic: Classes only partially saving?
Replies: 5
Views: 1130

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,...
by philat
Thu Dec 14, 2023 2:01 am
Forum: Ren'Py Questions and Announcements
Topic: See AnimatedValue bar's changing value?
Replies: 4
Views: 3356

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.