Search found 1853 matches

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

Code: Select all

if list_classes[0] == "Math" and list_time[0] == "9AM":
    jump Math9AM
by philat
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.
by philat
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...