Search found 1853 matches
- Wed Oct 26, 2022 9:57 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Using a List as a dict value in dialogue
- Replies: 2
- Views: 93
Re: Using a List as a dict value in dialogue
It's a limitation of square bracket interpolation - you should use renpy.say to use python .format interpolation. $renpy.say(None, "We're going {}!".format(Directions["up"][Invert]) #also do note up should be in quotes That said, not sure this is worth the effort given the simplicity of the variable...
- Fri Jul 15, 2022 9:36 am
- Forum: Ren'Py Questions and Announcements
- Topic: Add Sepia Filter To LayeredImage?
- Replies: 2
- Views: 221
Re: Add Sepia Filter To LayeredImage?
You can use matrixcolor transforms instead of image manipulators now. That said, assuming you would be showing the whole "memory" scene in sepia, wouldn't it be simpler to just filter the whole scene? transform sepia: matrixcolor SepiaMatrix() #https://www.renpy.org/doc/html/matrixcolor.html#SepiaMa...
- Thu Jul 14, 2022 3:51 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] trigger vpunch and hpunch from python?
- Replies: 15
- Views: 686
Re: trigger vpunch and hpunch from python?
It's a transition, so with. https://www.renpy.org/doc/html/statemen ... _statement
ETA: Ninja'ed, damn.
ETA: Ninja'ed, damn.
- Wed Jul 13, 2022 7:26 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to pass a variable to the button action when calling the screen?
- Replies: 4
- Views: 252
Re: How to pass a variable to the button action when calling the screen?
The second argument, if not a keyword arg, is transition. https://www.renpy.org/doc/html/screen_actions.html#Show
- Mon Jul 11, 2022 12:37 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] How to remove ghost width from frame in vpgrid?
- Replies: 4
- Views: 223
Re: How to remove ghost width from frame in vpgrid?
A vpgrid assumes that all children are the same size, the size being taken from the dimensions of the first child. If a vpgrid appears to be rendering incorrectly, please ensure that all children are of the same size. https://www.renpy.org/doc/html/screens. ... rid#vpgrid
- Sun Jul 03, 2022 11:01 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Picking random idle poses
- Replies: 3
- Views: 308
Re: Picking random idle poses
Not super clear on what you're trying to do (when would the poses be picked? When would they be refreshed? etc.), but in general I would look into hooking the show statement with config.show.
- Fri May 27, 2022 8:32 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Automatically adding "speaking" attribute to speaking character
- Replies: 3
- Views: 224
- Fri May 27, 2022 1:04 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Method not returning prompt
- Replies: 5
- Views: 283
Re: [Solved]Method not returning prompt
Sorry, brainfart in previous reply: should be basically along the lines of setattr(MCR, "crnt_"+self.ID, getattr(MCR, "ctrn_"+self.ID+1) - but basically, getattr and setattr will get you where you want. Again, though, please look into something else, if only to avoid having many duplicate attributes...
- Wed May 25, 2022 11:45 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Method not returning prompt
- Replies: 5
- Views: 283
Re: Method not returning prompt
Use [ code] tags instead of [ quote] tags for code. def Gain(self): if MCR.is_active: if MCR.crnt_weight + self.weight > MCR.max_weight: narrator("You can't carry any more weight.") else: MCR.crnt_weight += self.weight getattr(MCR, "crnt_"+self.ID) += 1 # I'm assuming self.ID is "mag_cell" - flytype...
- Wed May 25, 2022 11:35 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] Translation of strings
- Replies: 14
- Views: 307
Re: [solved] Translation of strings
You probably used $ hike = "m" instead of $ hike = m.
- Tue May 24, 2022 10:55 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Comparing Specific Content within an Index of Two Lists (if list_a[0] == pie && list_b == cherry)
- Replies: 5
- Views: 389
Re: Comparing Specific Content within an Index of Two Lists (if list_a[0] == pie && list_b == cherry)
For that specific use case: jump expression list_classes[0]+list_time[0] https://www.renpy.org/doc/html/label.ht ... -statement
In general, the python syntax for what you put down would simply be
In general, the python syntax for what you put down would simply be
Code: Select all
if list_classes[0] == "Math" and list_time[0] == "9AM":
jump Math9AM
- Sat May 21, 2022 9:55 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Buttons on screen are clickable through other screen.
- Replies: 6
- Views: 268
Re: Buttons on screen are clickable through other screen.
Try modal in your menu screen.
- Sat May 21, 2022 9:54 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Unexpected line-break in Frame / VPGRID
- Replies: 4
- Views: 249
Re: Unexpected line-break in Frame / VPGRID
Frame width and vpgrid width are not necessarily the same. That said, no idea why you think vbox can't use spacing property.
- Fri May 20, 2022 9:09 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Composite image questions--% wildcard tag?
- Replies: 12
- Views: 354
Re: Composite image questions--% wildcard tag?
Try an inline conditional (caveat, haven't tried doing this, so perhaps it won't work.) image mc = Composite( (467, 946), (0, 0), "images/bodies/body[body_type]/body[body_type]_[skin_color].png", (0, 0), "images/hairunder/hunder[hair_type]/hunder[hair_type]_[hair_color].png" if (hair_type==5 or hair...
- Fri May 20, 2022 9:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Assigning One-off Alternate Color Highligh to Menu Choice
- Replies: 2
- Views: 220
Re: Assigning One-off Alternate Color Highligh to Menu Choice
Try hover_background instead of background.