Search found 1601 matches

by philat
Mon Jun 24, 2019 8:49 pm
Forum: Creator Discussion
Topic: Find & Replace {t}{/t} (RegEx) Question [Semi SOLVED]
Replies: 13
Views: 595

Re: Find & Replace {t}{/t} (RegEx) Question [Semi SOLVED]

https://www.renpy.org/doc/html/dialogue.html#Character

The descriptions of what_prefix and what_suffix seems self-explanatory, tbh.
by philat
Mon Jun 24, 2019 8:45 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Is it possible to use variables in Ren'Py statements?
Replies: 3
Views: 82

Re: Is it possible to use variables in Ren'Py statements?

show expression. https://www.renpy.org/doc/html/displayi ... -statement (you have to scroll down a bit to find show expression)

show expression "status"+status+".png"
by philat
Fri Jun 21, 2019 1:36 am
Forum: Ren'Py Questions and Announcements
Topic: AttributeError: 'nonetype' object has no attribute 'rpartition' after I change a variable in a set in a class
Replies: 9
Views: 130

Re: AttributeError: 'nonetype' object has no attribute 'rpartition' after I change a variable in a set in a class

It's relatively recent that SetVariable supports object attributes out of the box anyway, so it may not support a dictionary as an object attribute. *shrug* I hadn't bothered trying. Quick test seems to show that SetDict(MC.armor, "helm", itemselect) is probably what you want.
by philat
Fri Jun 21, 2019 12:39 am
Forum: Ren'Py Questions and Announcements
Topic: Creating an 'active' clock?
Replies: 3
Views: 175

Re: Creating an 'active' clock?

I would recommend looking at clock and calendar examples in the cookbook.
by philat
Fri Jun 21, 2019 12:33 am
Forum: Ren'Py Questions and Announcements
Topic: AttributeError: 'nonetype' object has no attribute 'rpartition' after I change a variable in a set in a class
Replies: 9
Views: 130

Re: AttributeError: 'nonetype' object has no attribute 'rpartition' after I change a variable in a set in a class

I am really pretty sure it is. MC.armor["helm"], which you are supplying to SetVariable, is None by default. The error is saying saying None doesn't have the method rpartition, which SetVariable is trying to call because it's set up to take strings. I mean, it could technically be something else but...
by philat
Fri Jun 21, 2019 12:31 am
Forum: Creator Discussion
Topic: Find & Replace {t}{/t} (RegEx) Question [Semi SOLVED]
Replies: 13
Views: 595

Re: Find & Replace {t}{/t} Question [UNSOLVED]

I mean, the ACTUAL answer is you shouldn't be doing that anyway and should be using what_prefix and what_suffix instead...
by philat
Fri Jun 21, 2019 12:26 am
Forum: Ren'Py Questions and Announcements
Topic: AttributeError: 'nonetype' object has no attribute 'rpartition' after I change a variable in a set in a class
Replies: 9
Views: 130

Re: AttributeError: 'nonetype' object has no attribute 'rpartition' after I change a variable in a set in a class

Lots of minor issues in what you've posted, but pretty sure this is an issue of SetVariable needing a string ("MC.armor['helm']").
by philat
Wed Jun 19, 2019 11:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Play a sound on a "Show"
Replies: 4
Views: 145

Re: Play a sound on a "Show"

I'd just play the sound separately. If you need to loop it, you can.
by philat
Wed Jun 19, 2019 11:07 pm
Forum: Ren'Py Questions and Announcements
Topic: Python in Renpy If Statements
Replies: 1
Views: 123

Re: Python in Renpy If Statements

Screens must not cause side effects that are visible from outside the screen. Ren'Py will run a screen multiple times, as it deems necessary. It runs a screen as part of the image prediction process, before the screen is first shown. As a result, if running a screen has side effects, those side eff...
by philat
Wed Jun 19, 2019 5:59 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] "Unbound method get_tooltip() must be called with Return"
Replies: 5
Views: 145

Re: [SOLVED] "Unbound method get_tooltip() must be called with Return"

Updates often enforce correct syntax when mistakes were allowed before.
by philat
Sun Jun 16, 2019 10:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Overriding hyperlink handlers? [Solved]
Replies: 4
Views: 158

Re: Overriding hyperlink handlers?

Prints fine for me. In any case, if it's jumping but not printing, then it's probably a console issue, not an issue with the handler itself.
by philat
Sun Jun 16, 2019 9:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Vpgrid scrollbar position [Solved]
Replies: 2
Views: 193

Re: Vpgrid scrollbar position

You have to manually create the side (scrollbars automatically creates the side and I don't believe you can change that). Sides: https://www.renpy.org/doc/html/screens.html#side Example that this cribs from: https://www.renpy.org/doc/html/screens.html#viewport screen vpgrid_test(): side "c l": vpgri...
by philat
Sun Jun 16, 2019 9:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Help with Customizing renpy.input
Replies: 5
Views: 243

Re: Help with Customizing renpy.input

If you want a text adventure, might be easier to work with something like Inform or TADS... Anyway, you can just customize the input screen. For instance, assuming you're using the default input screen, adding the following moves the input window to the center and makes it a 600x300 light gray box. ...