Search found 1692 matches

by philat
Wed Feb 12, 2020 8:27 pm
Forum: Ren'Py Questions and Announcements
Topic: differences between various types of characters
Replies: 1
Views: 170

Re: differences between various types of characters

Basically just ignore anything other than the last of each category (i.e., using Character() ) -- there can be internal differences, but ren'py will do the work of figuring it out for you, and trying to manipulate such things directly is likelier to lead to an error.
by philat
Fri Feb 07, 2020 10:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Question - How read all character declared for make a drop-down menu on automatic script [SOLVED]
Replies: 10
Views: 432

Re: Question - How read all character declared for make a drop-down menu on automatic script

Afaik, there's no easy way to do this out of the box. (I could be wrong obvs.) Other than doing it manually, your best bet is probably rolling some custom function to define characters and append them to a data structure (along the lines of https://lemmasoft.renai.us/forums/viewtopic.php?t=29409 - n...
by philat
Thu Feb 06, 2020 9:04 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] "Unknown keyword arguments: what, who" But... it's right there.
Replies: 10
Views: 433

Re: "Unknown keyword arguments: what, who" But... it's right there.

*shrug* Good luck then. It's not a matter of the character definition itself--it's what Remix said. I would imagine it's likely the say screen but it may be something else.
by philat
Tue Feb 04, 2020 8:31 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] "Unknown keyword arguments: what, who" But... it's right there.
Replies: 10
Views: 433

Re: "Unknown keyword arguments: what, who" But... it's right there.

Honestly, why not just run it on 2014 Ren'py? I don't have your files and I can't verify, but that sounds like an instance where ren'py's internal workings have changed enough that they're not working with your old screens. In any case, is there a particular reason you need to be running this on 7.3...
by philat
Thu Jan 30, 2020 10:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Tried to have randomized styles
Replies: 2
Views: 234

Re: Tried to have randomized styles

Handling randomization in screens is more of a headache than it's probably worth, tbh. Pulling the randomization OUT of the screen is the easier solution. Didn't run this, but it should work. *shrug* screen choice(items, randomSTYLE==1): # note the keyword argument passed into the screen (or if not ...
by philat
Thu Jan 16, 2020 4:00 am
Forum: Ren'Py Questions and Announcements
Topic: How do you control what does and does not get saved?
Replies: 5
Views: 268

Re: How do you control what does and does not get saved?

All savable variables (including objects) should be declared with default, i.e.:

default Kronos = Timekeeper()
by philat
Thu Jan 16, 2020 3:58 am
Forum: Ren'Py Questions and Announcements
Topic: For loops, list, and screens
Replies: 4
Views: 273

Re: For loops, list, and screens

You're not "refreshing" the screen when you use your Function(). You can manually restart the interaction, but AddToSet() and RemoveFromSet() are honestly probably easier... https://www.renpy.org/doc/html/screen_a ... ta-actions
by philat
Thu Jan 16, 2020 2:19 am
Forum: Ren'Py Questions and Announcements
Topic: Character speaks based on a variable?
Replies: 4
Views: 259

Re: Character speaks based on a variable?

I haven't tested it, but the error message itself is telling you that the condition needs to be a string.

Code: Select all

define k = Character("Karen", condition=("inparty('Karen')"))
by philat
Wed Jan 15, 2020 9:12 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Using If/Else Statements To Change Text Color For Night Mode
Replies: 6
Views: 261

Re: Hotspots, Variables, And Text Color

Minor errors in either case: the lack of space between the coordinates and action, and the indentation of color needs to under the text rather than under the window.
by philat
Mon Jan 13, 2020 5:20 am
Forum: Ren'Py Questions and Announcements
Topic: Screen button click not registering?
Replies: 4
Views: 250

Re: Screen button click not registering?

Yeah, I couldn't really figure it out either. It works either if you put the default outside the screen (so it's a regular variable rather than a screen variable) OR if you use SetDict, but I don't really see why Function and SetDict would differ in how they treat screen variables. Can't really help...
by philat
Sun Jan 12, 2020 9:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Screen button click not registering?
Replies: 4
Views: 250

Re: Screen button click not registering?

Yeah, that's weird. Don't know what's up. That said, it appears you can bypass the problem by using SetDict, if that's all you needed.
by philat
Thu Jan 09, 2020 9:42 am
Forum: Ren'Py Questions and Announcements
Topic: Finding out which scene is currently active
Replies: 2
Views: 234

Re: Finding out which scene is currently active

You can find a few by searching the forums for current label, etc. That said, I previously made similar games with the below setup (conceptually) which worked fine for me. default lastscreen = "room1" screen room1: on "show" action SetVariable("lastscreen", "room1") ... imagebuttons etc use navigati...
by philat
Mon Jan 06, 2020 9:41 pm
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED!) Livecomposite Minigame - Random Rewards on Click
Replies: 4
Views: 322

Re: Livecomposite Random Rewards on Click (Minigame)

You're in luck as it's the new year and things have been very slow at work so I am quite bored. Here, a working example of random clicking (you can throw this in a new project and run it). I didn't bother with the timed part because I don't know what you want to do, exactly. That said, you can searc...