Search found 959 matches

by m_from_space
Sat Apr 20, 2024 2:35 am
Forum: Ren'Py Questions and Announcements
Topic: Passing a list parameter to a screen
Replies: 1
Views: 44

Re: Passing a list parameter to a screen

Any help anyone could render would be greatly appreciated. Thank you! Just make SquadNPCs a global variable the right way and then do not use any screen arguments anymore. I mean why pass it around like this, if it will always be this list? Arguments are useful if they change. Do NOT create variabl...
by m_from_space
Sat Apr 20, 2024 2:24 am
Forum: Ren'Py Questions and Announcements
Topic: Collapsible lists for a RenPy screen?
Replies: 2
Views: 19

Re: Collapsible lists for a RenPy screen?

The problem is that I have no idea on how to make a collapsible list and google has yielded no results so far. I suggest you create a sub-screen that acts as any collapsable list and then use it in another screen whenever you want to display it. default quests_incomplete = ["Quest 2", &qu...
by m_from_space
Thu Apr 18, 2024 3:07 pm
Forum: Ren'Py Questions and Announcements
Topic: shorter translate strings patch for renpy game
Replies: 4
Views: 182

Re: shorter translate strings patch ?

I don't have any coding knowledge, I just know where the characters dialogue lines are and few patches that I found: init python: def replace_text(t): t = t.replace("old text", "new text") t = t.replace("old text", "new text") return t config.say_menu_text_fi...
by m_from_space
Thu Apr 18, 2024 9:32 am
Forum: Ren'Py Questions and Announcements
Topic: shorter translate strings patch for renpy game
Replies: 4
Views: 182

Re: shorter translate strings patch ?

Is it possible to make a translate strings patch shorter? What do you mean by "patch"? Am I missing something? You present string translations. They have to be in the format you showed, using a newline, not a comma. What are you hoping to gain when making your translation file less readab...
by m_from_space
Thu Apr 18, 2024 7:02 am
Forum: Ren'Py Questions and Announcements
Topic: What does define config.adjust_attributes = { } do?
Replies: 7
Views: 202

Re: What does define config.adjust_attributes = { } do?

I'm wondering how to write a python function that automatically changes my characters clothing, without having to write a lengthy set of "if" statements in the layered image. Maybe I should point out, that you don't have to write all if conditions inside the layered image. You can also de...
by m_from_space
Thu Apr 18, 2024 6:39 am
Forum: Ren'Py Questions and Announcements
Topic: What does define config.adjust_attributes = { } do?
Replies: 7
Views: 202

Re: What does define config.adjust_attributes = { } do?

I want the player to be able swap clothing, and have it stick. It's the first time you mention that you want the player to change the clothes. How am I supposed to know that? config.adjust_attributes helps you define attributes of layered images depending on contents of variables. This config varia...
by m_from_space
Thu Apr 18, 2024 5:49 am
Forum: Ren'Py Questions and Announcements
Topic: Creating a texting function for a phone screen
Replies: 3
Views: 123

Re: Creating a texting function for a phone screen

label phone_jump: python: while messages_queue: text = messages_queue.pop(0) messages_history.append(f"{text}") call screen phone_messages This seems to work almost exactly how I want it to but the only issue is that all the messages show instantly rather than one by one as the phone/scre...
by m_from_space
Wed Apr 17, 2024 6:17 am
Forum: Ren'Py Questions and Announcements
Topic: Creating a texting function for a phone screen
Replies: 3
Views: 123

Re: Creating a texting function for a phone screen

I want to add a texting function to a phone I made in Ren'Py. I don't know how much experience in programming in Python and Renpy you have, but saving messages can be achieved very easily inside a list. Each message on the other hand could be also a list or a tuple, that contains a name, the text a...
by m_from_space
Wed Apr 17, 2024 5:55 am
Forum: Ren'Py Questions and Announcements
Topic: What does define config.adjust_attributes = { } do?
Replies: 7
Views: 202

Re: What does define config.adjust_attributes = { } do?

That I don't want to keep on writing "if" statements every time the main character changes an item of clothing, as there will be a lot more clothing. Not sure you understand how layered images work, in general you don't have to use any if-statements. Look at this example: https://www.renp...
by m_from_space
Tue Apr 16, 2024 5:50 am
Forum: Ren'Py Questions and Announcements
Topic: What does define config.adjust_attributes = { } do?
Replies: 7
Views: 202

Re: What does define config.adjust_attributes = { } do?

I'm wondering how to write a python function that automatically changes my characters clothing, without having to write a lengthy set of "if" statements in the layered image. What do you mean by "automatically". You just said you don't want "if" statements, but then yo...
by m_from_space
Mon Apr 15, 2024 8:41 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to add an animation when Draggable objects snaps to Droppable?
Replies: 1
Views: 206

Re: Is it possible to add an animation when Draggable objects snaps to Droppable?

image_2024-04-14_163609792.png Basically when one of the ingredients falls into (snaps to center) of the cauldron i want to have a splash animation played over the cauldron. There is a callable you can set when a drag finishes its snapping. So if the snap completes, just show a certain screen, or s...
by m_from_space
Mon Apr 15, 2024 8:21 am
Forum: Ren'Py Questions and Announcements
Topic: Where to find math documentation?
Replies: 1
Views: 187

Re: Where to find math documentation?

Hi everyone, I've been trying to use various math functions for renpy but I'm having trouble finding any documentation for it. I can find python docs for math, but that's not exactly the same as how it's used in renpy. Any clues on where to look? Thanks. What exactly are you referring to when sayin...
by m_from_space
Sat Apr 13, 2024 1:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Making fading popups in a screen [SOLVED]
Replies: 4
Views: 205

Re: Making fading popups in a screen

I want to make popups that quickly show up and disappear, notifying you that you cant do certain actions. Renpy has an internal notification feature you can use. screen myscreen(): textbutton "Click me!" action Notify("You clicked me.") # you can also use it as a python function...
by m_from_space
Thu Apr 11, 2024 6:47 am
Forum: Ren'Py Questions and Announcements
Topic: Make the elements fade in individually?
Replies: 1
Views: 150

Re: Make the elements fade in individually?

My question is, how do I manipulate the individual assets on my main menu screen so that the character images and titles on them fade out, like in many visual novels? I'm not sure what you mean by character images and titles inside the main menu, since by default there are no character images in th...
by m_from_space
Thu Apr 04, 2024 4:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Infinite money glitch when scrolling up
Replies: 4
Views: 198

Re: Infinite money glitch when scrolling up

jeffster wrote: Thu Apr 04, 2024 8:44 am I have no idea what happens if you define them like this:

Code: Select all

init python:
    InventoryChar1 = []
    InventoryChar2 = []
Renpy treats variables defined inside python blocks as constants. It doesn't care about them so to speak.