Search found 1780 matches
- Wed Jan 13, 2021 9:03 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Screen prediction when using the Function() action
- Replies: 5
- Views: 106
Re: Screen prediction when using the Function() action
The following works fine, so it's not Function. I don't know what it is based on what you posted. init python: class Game(): def __init__(self): self.diff = 5 self.achievements = True def change_diff(self, amount): self.diff += amount self.update_achievements() def update_achievements(self): if self...
- Wed Jan 13, 2021 2:21 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]How do I make an imagemap insensitive?
- Replies: 3
- Views: 96
- Sun Jan 10, 2021 11:54 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How do I clear side image attributes?
- Replies: 4
- Views: 164
Re: How do I clear side image attributes?
Huh. Weird. Figured that it would support the new - and @ notation but guess that's just for layered images. Guess you can always force it by providing a nonexistent attribute as pointed out above.
- Sun Jan 10, 2021 5:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: How do I clear side image attributes?
- Replies: 4
- Views: 164
Re: How do I clear side image attributes?
Don't remember if this was ever added to the docs where it should be (looking at it now, I guess not?), but -attribute should work with side images. You can also use @ attribute for one-line only attributes. label start: e "This will show the 'side eileen' image" e mad "This will show the 'side eile...
- Fri Jan 08, 2021 7:18 am
- Forum: Ren'Py Questions and Announcements
- Topic: Say statement in menu stopping choice button hover
- Replies: 4
- Views: 174
Re: Say statement in menu stopping choice button hover
There's no reason that the say statement would affect the choice hovers (it does not in a new project), so you're going to have to do more investigating to figure out what's causing it.
- Fri Jan 08, 2021 12:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: Why are my actions running without input?
- Replies: 3
- Views: 126
Re: Why are my actions running without input?
Unfortunately, probably not really. Only thing I can say is be particular about what's in the docs (notice that the documentation for Function does state that you should pass all args/kwargs separately https://www.renpy.org/doc/html/screen_actions.html#Function) and look for examples by searching he...
- Fri Jan 08, 2021 12:33 am
- Forum: Ren'Py Questions and Announcements
- Topic: Why are my actions running without input?
- Replies: 3
- Views: 126
Re: Why are my actions running without input?
Haven't bothered testing, but probably should be Function(getID, i).
- Thu Jan 07, 2021 11:39 am
- Forum: Ren'Py Questions and Announcements
- Topic: Python code item and Load/Save bug
- Replies: 9
- Views: 370
Re: Python code item and Load/Save bug
It's literally just
default time_hour = 8
default time_minute = 15
etc., without indentation, anywhere in the script.
default time_hour = 8
default time_minute = 15
etc., without indentation, anywhere in the script.
- Thu Jan 07, 2021 11:36 am
- Forum: Ren'Py Questions and Announcements
- Topic: About changing variables in imagebuttons
- Replies: 1
- Views: 138
Re: About changing variables in imagebuttons
I didn't take the time to parse everything you did, but that is not how I would approach it in general. You can run the following in a new project as a set of pointers. init python: class Item(): def __init__(self, food, energy, power): self.food = food self.energy = energy self.power = power self.s...
- Fri Jan 01, 2021 3:29 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Transform fails with SetVariable if the value is not changed
- Replies: 2
- Views: 210
Re: [BUG?] Transform fails with SetVariable if the value is not changed
Either set selected (https://www.renpy.org/dev-doc/html/screens.html#button ) to False or add selected_hover , selected_idle to the transform. Also, by default, a button is selected if any action in the list of actions returns as selected, so adding more things doesn't change anything (for what you'...
- Thu Dec 24, 2020 11:24 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Call Screen Refresh If Statements Always Evaluate To True
- Replies: 4
- Views: 275
Re: Call Screen Refresh If Statements Always Evaluate To True
This question looks like classic xy problem. What are you actually trying to do?
- Thu Dec 24, 2020 4:15 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Dynamic Movie Player
- Replies: 8
- Views: 355
Re: Dynamic Movie Player
As far as I understand, what you're looking to do isn't supported by the engine right now. Images are only defined at init stage, and trying to initialize a Movie outside of init throws an error.
- Mon Dec 21, 2020 4:14 am
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a class
- Replies: 1
- Views: 239
Re: Help with a class
You don't have a self.count = count in the __init__().
- Mon Dec 21, 2020 3:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: Change character name depending on "Sayer"
- Replies: 8
- Views: 310
Re: Change character name depending on "Sayer"
No, what I mean is why wouldn't you just have a variable for each nickname and use it accordingly. So your daughter might only ever call you daddy (or whatever else the mc chooses) but it is unrealistic for your SO or brother, for example, to ONLY call you a nickname like sweetheart or bro. And the ...
- Mon Dec 21, 2020 1:39 am
- Forum: Ren'Py Questions and Announcements
- Topic: The while loop does not stop working when the condition is met.
- Replies: 3
- Views: 315
Re: The while loop does not stop working when the condition is met.
Well, obviously, as A or B returns true if either A or B is true. That should be an and if you want it to stop if when A or B becomes false.