Search found 1006 matches

by m_from_space
Thu May 16, 2024 5:20 am
Forum: Ren'Py Questions and Announcements
Topic: Need help creating an undo function for drawing function
Replies: 3
Views: 166

Re: Need help creating an undo function for drawing function

I've had to go to work before I could finish testing this, so I'll try again in a fresh project and update if it makes any difference. Sure, that sounds right. But if it still doesn't work out, just send me your project, if it's just something like a test, including the images. Because I am too laz...
by m_from_space
Wed May 15, 2024 3:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Adding screen text to history log
Replies: 6
Views: 1520

Re: Adding screen text to history log

Hello, have you found a better solution to avoid copying "$ narrator.add_history(kind="adv", who="Charname", what=_("the needed text"))" every time? If so, could you please share the code? Let's say you want to show fake dialogue (meaning not normal Renpy dia...
by m_from_space
Wed May 15, 2024 3:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Need help creating an undo function for drawing function
Replies: 3
Views: 166

Re: Need help creating an undo function for drawing function

Can anybody help me understand what I am missing? I mean it works for me, but your redo function has a bug, you want to add your old children to the list of children, not the old children again. ;) This code works in general. It still need work though, since clearing the canvas and then hitting &qu...
by m_from_space
Wed May 15, 2024 5:23 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with non-English text getting partially clipped out
Replies: 1
Views: 102

Re: Problem with non-English text getting partially clipped out

I am creating a game in Thai. The language has vowels that go both above and below the letters, and I am having trouble with those that go below getting clipped out. I have examples on what the text in-game looks like along with what it's supposed to look like. Hey there. So first of all, I don't s...
by m_from_space
Tue May 14, 2024 4:25 am
Forum: Ren'Py Questions and Announcements
Topic: Default ability not affecting action?
Replies: 1
Views: 116

Re: Default ability not affecting action?

Hiya. I edited my code to be smoother, changing the player stats to default so I didn't have to constantly create a Python block when I needed to refer to them. I don't quite get what you mean by that, but maybe let me tell you things about variables in Renpy. 1. Better never declare variables insi...
by m_from_space
Tue May 14, 2024 4:04 am
Forum: Ren'Py Questions and Announcements
Topic: TypeError: list indicies must be integers or slices, not NoneType [SOLVED]
Replies: 2
Views: 128

Re: TypeError: list indicies must be integers or slices, not NoneType

Apologies if this is a long post, but I'd like to get this issue resolved soon, and wanted to make sure I provided as many different facets of the issue as possible. Thanks in advance to anyone who has any info on this issue! So it looks like your "stationNum" suddenly appears to be of No...
by m_from_space
Thu May 09, 2024 12:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
Replies: 7
Views: 279

Re: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause

So my way to show some message to the player while not wanting the player to continue, would be to call a modal screen and use a timer to automatically return from that screen. screen show_message(msg, t=3.0) modal True text "[msg]" align (0.5, 0.5) timer t action Return() label start: &qu...
by m_from_space
Thu May 09, 2024 11:55 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]How can I reuse the screens?
Replies: 5
Views: 279

Re: How can I reuse the screens?

How can I make all screens (left panel, content panel and imagebutton) appear for each searched word? The imagebuttons are the same (because they are part of the browser), while the panels change for each word (left panel will show 5 possible results for each word, while the content panel will only...
by m_from_space
Thu May 09, 2024 11:44 am
Forum: Ren'Py Questions and Announcements
Topic: Map where you cannot go to the same place multiple times
Replies: 8
Views: 355

Re: Map where you cannot go to the same place multiple times

For one I have the code like this (I called it custom_screens.rpy based on the tutorial): In general your code looks fine regarding my suggestions. But two issues: 1) The Jump("house1_pressed") should also have a label with that name, you just used my label name from the example which is ...
by m_from_space
Thu May 09, 2024 11:27 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Variable as a part of another variable's name?
Replies: 9
Views: 387

Re: Variable as a part of another variable's name?

I was looking for that and I found this post with the same question, but I didn't understand exactly how that works. When you create a variable in Renpy script language using the keyword "default", Renpy will then create an attribute of that name inside its "store" object. So fo...
by m_from_space
Wed May 08, 2024 2:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Map where you cannot go to the same place multiple times
Replies: 8
Views: 355

Re: Map where you cannot go to the same place multiple times

Hi, thank you for your response! Unfortunately I'm too green to be able to implement your example in my own code. I tried copy pasting it exactly for example and nothing is changing. I don't understand how variables work to adapt it to my code :(. I appreciate any help. Can you show me your relevan...
by m_from_space
Wed May 08, 2024 2:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Want to add text to a (image)button
Replies: 5
Views: 192

Re: Want to add text to a (image)button

I can use the fixed: method too, where I have an imagebutton & textbutton as children, but same issue as it is with the button method, nothing shows. No errors, no nothing. Well, I guess there is no data / dict inside "wardrobe.top_unlock" that it can iterate over. Maybe post your cla...
by m_from_space
Wed May 08, 2024 9:18 am
Forum: Ren'Py Questions and Announcements
Topic: Question about choices that make changes to the background
Replies: 2
Views: 234

Re: Question about choices that make changes to the background

I just hope that someone can help me. Hey, so there are different approaches here. The easiest way is to just store the choice inside a variable that you then use as the background. Since you are new, let me tell you something about images in Renpy: all images inside the "game/images" fol...
by m_from_space
Wed May 08, 2024 9:04 am
Forum: Ren'Py Questions and Announcements
Topic: How to add images to inventory grid?
Replies: 2
Views: 192

Re: How to add images to inventory grid?

What I want to do is have an image button of a health potion, hovering it gives a tooltip of what it does, and clicking it will increase health and remove 1 health potion. How far have you come trying to create this for now? I mean what's the exact issue you have? So here is how you create an image...
by m_from_space
Wed May 08, 2024 8:48 am
Forum: Ren'Py Questions and Announcements
Topic: Map where you cannot go to the same place multiple times
Replies: 8
Views: 355

Re: Map where you cannot go to the same place multiple times

I know how to remove choices with a menu choice, but not how to do it with buttons. Any assistance? You just have to save what was visited either in a single variable or a list or whatnot and then check for that condition inside of the screen. An example (which also works for imagebuttons in the sa...