Search found 1733 matches

by philat
Fri May 29, 2020 10:31 pm
Forum: Ren'Py Questions and Announcements
Topic: How to show both AnimatedValue AND the value that's changing?
Replies: 7
Views: 158

Re: How to show both AnimatedValue AND the value that's changing?

re: division by zero: use floats, not integers (integer division in python 2.7 would result in 0).
by philat
Wed May 27, 2020 8:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] User-togglable screen effects (vignette, film grain) on dedicated layer
Replies: 3
Views: 101

Re: User-togglable screen effects (vignette, film grain) on dedicated layer

Forget showing and hiding the image from menu context, easier to just toggle the variable and do the showing/hiding elsewhere. screen vignette_screen: layer "vignette_layer" if persistent.vignette: # toggle the add add 'vignette' label start: show screen vignette_screen # should stay up at all times...
by philat
Mon May 25, 2020 7:03 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Show image inside function
Replies: 3
Views: 76

Re: [Question] Show image inside function

Not that there's anything wrong with using a function but if it's purely renpy script you need, simpler to use a called label.
by philat
Mon May 18, 2020 8:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Day/Night/Weather-System with im.ColorMatrix-Shaders?
Replies: 7
Views: 273

Re: Day/Night/Weather-System with im.ColorMatrix-Shaders?

Eh. Image manipulators aren't very commonly used because they only take images, not displayables, and because they're considered relatively expensive (although what that actually means in concrete numbers is beyond me). That said, there's no other feature for what you want currently, afaik.
by philat
Sun May 17, 2020 9:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]Showing countries' info by clicking on cities [python list and object/classes]
Replies: 8
Views: 263

Re: Showing countries' info by clicking on cities [python list and object/classes]

You could do this in any number of ways, but, uh, why would you not reference stuff directly (in whichever direction you prefer)? TL_GUO_loc[0] = GuoPlace(2819, 2023, "Kwangchow", True, TL_GUO[0], "ROC", False, False) e.g., TL_GUO[0], rather than "Republic of China", meaning you could refer to whate...
by philat
Sun May 17, 2020 2:40 am
Forum: Ren'Py Questions and Announcements
Topic: Modifying Extend to Show All At Once? (solved)
Replies: 6
Views: 152

Re: Modifying Extend to Show All At Once?

Any reason you wouldn't just use {nw}?
by philat
Fri May 15, 2020 8:42 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Screen that switches between vbox and hbox
Replies: 5
Views: 134

Re: Screen that switches between vbox and hbox

You could use has vbox / has hbox if that fits what you want. Or you could use a separate screen, e.g.: screen myscreen(): if normalmode: vbox xalign 1.0 yalign 0.0: use inventory else: hbox xalign 0.0 yalign 0.99: use inventory screen inventory: # big block of duplicated code
by philat
Fri May 15, 2020 1:23 am
Forum: Ren'Py Questions and Announcements
Topic: Parsing the script error
Replies: 1
Views: 113

Re: Parsing the script error

Don't use smart quotes.
by philat
Sun May 10, 2020 9:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Turning a function into a creator-defined statement
Replies: 11
Views: 266

Re: Turning a function into a creator-defined statement

The reason everyone is saying maybe don't do it is because it's time and effort going into something with not a ton of benefit -- the difference in effort between $showScene(myScene) and showScene myScene is... negligible. The effort of getting a creator-defined statement to work is less negligible ...
by philat
Fri May 08, 2020 3:05 am
Forum: Ren'Py Questions and Announcements
Topic: Assign to lists with a condition [python]
Replies: 4
Views: 215

Re: Assign to lists with a condition [python]

Eh. I mean, the concept would be the same with different numbers. But I guess I can think of ways to do this but can't really offer any thought on whether it's "efficient" or not.
by philat
Fri May 08, 2020 1:34 am
Forum: Ren'Py Questions and Announcements
Topic: I've created a seemingly unfixeable problem (for me, at least. I'm rather new, so some help would be amazing).
Replies: 3
Views: 242

Re: I've created a seemingly unfixeable problem (for me, at least. I'm rather new, so some help would be amazing).

Basically you shouldn't be using ShowMenu because the menu context is separate from the game context. Try Show(), although you'll need to figure out your own flow control. Perhaps referring to this will help. viewtopic.php?f=51&t=53539#p503792
by philat
Thu May 07, 2020 9:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Assign to lists with a condition [python]
Replies: 4
Views: 215

Re: Assign to lists with a condition [python]

In your 6 characters / 4 times a week example, wouldn't it make more sense and be simpler to enforce that all days have three or four encounters (as opposed to a truly random 5 5 5 5 1 1 2 distribution, for example?) Then it would be a matter of distributing 24 cards into seven groups of 3/4 and the...
by philat
Wed May 06, 2020 2:14 am
Forum: Ren'Py Questions and Announcements
Topic: Any way to do ATL/Style-changing effects on individual dialogue letters?
Replies: 8
Views: 274

Re: Any way to do ATL/Style-changing effects on individual dialogue letters?

Dunno how well that would work, if it would even work at all. Well, it can work. But the problem (and the reason I didn't mention it) is that by doing that you're automatically not using ren'py's built-in text system (the syntax, line-breaking, text tags, characters and all their assorted features ...
by philat
Wed May 06, 2020 1:35 am
Forum: Ren'Py Questions and Announcements
Topic: Any way to do ATL/Style-changing effects on individual dialogue letters?
Replies: 8
Views: 274

Re: Any way to do ATL/Style-changing effects on individual dialogue letters?

As far as I know, basically the answer is there is no simple way to do this. You can sort of hack your way around it for specific effects using text tags (e.g., https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=23852 ) but there are limits. The internal workings of renpy's text display are at th...
by philat
Mon May 04, 2020 8:36 pm
Forum: Ren'Py Questions and Announcements
Topic: String Translation of Variable Text
Replies: 10
Views: 254

Re: String Translation of Variable Text

...because this seems way more complicated than it should be... I mean... agreed. show screen date with dissolve pause hide screen date with dissolve (obviously without the button) is the simplest form of what you're asking for and should work fine. If you want to use scene for the transition, you ...