Search found 1134 matches

by noeinan
Sat Apr 25, 2020 3:37 am
Forum: Ren'Py Questions and Announcements
Topic: NVL Textbox Not Accepting Custom Layer
Replies: 1
Views: 307

NVL Textbox Not Accepting Custom Layer

Hello! So, I've been using custom layers to organize my various screens and have recently run into an issue. My game has nvl mode and I'm using a customized nvl textbox. I have an overlay that I want to appear on top of the nvl screen, but it keeps showing up underneath it. I'm wondering if I did an...
by noeinan
Sat Apr 25, 2020 3:27 am
Forum: Ren'Py Cookbook
Topic: [Tutorial] Customizing the NVL Textbox
Replies: 38
Views: 35708

Re: [Tutorial] Customizing the NVL Textbox

Thanks so much for this guide! It's been really helpful as I'm using nvl mode for the first time in a game I'm working on. Regarding the new code, I've run into a bit of an issue and was wondering if anyone had some insight? Gui.rpy: ## The position, width, and alignment of nvl_thought text (the tex...
by noeinan
Thu Apr 16, 2020 1:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Dict works in dialogue, not in if statements? Syntax probably? (solved)
Replies: 2
Views: 482

Re: Dict works in dialogue, not in if statements? Syntax probably?

Ah! Thanks, that worked right away, guess I just needed quotes.
by noeinan
Mon Apr 13, 2020 10:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Dict works in dialogue, not in if statements? Syntax probably? (solved)
Replies: 2
Views: 482

Dict works in dialogue, not in if statements? Syntax probably? (solved)

I have a function that generates multiple NPCs. I'm using it for a variety of things, one of them being NPC pronouns. Got things mostly working, but when I try to change a displayed button using if statements based on the pronoun, it keeps saying the generated npc hasn't been defined. I can print th...
by noeinan
Mon Apr 13, 2020 8:18 pm
Forum: Ren'Py Questions and Announcements
Topic: "'int' object not callable" error when I use max(var,0) in a function? (solved)
Replies: 1
Views: 296

Re: "'int' object not callable" error when I use max(var,0) in a function? (solved)

Ah, found out the issue. I made a new game and copied my NPC function into it, then copy/pasted each file of my code individually until I got the error. Turns out it was in my calendar file. I had a time keeping function that stored minutes as "min" which broke my ability to use the min() ...
by noeinan
Mon Apr 13, 2020 7:55 pm
Forum: Ren'Py Questions and Announcements
Topic: "'int' object not callable" error when I use max(var,0) in a function? (solved)
Replies: 1
Views: 296

"'int' object not callable" error when I use max(var,0) in a function? (solved)

I've got a function generating random npcs, and I swear it used to work but now when I try to use it suddenly it's giving me an error when it reaches a line where I'm using the min() and max() functions. I looked this error up and apparently it's usually when you have a function whose name is also a...
by noeinan
Sun Apr 12, 2020 3:13 am
Forum: Ren'Py Questions and Announcements
Topic: Hyperlink not recognizing variables (solved)
Replies: 3
Views: 375

Re: Hyperlink not recognizing variables

Thank you so much! If I use the style code for hyperlinks the buttons show up but don't actually work, but as long as I comment that code out it works great. I really appreciate your help
by noeinan
Sat Apr 11, 2020 11:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Hyperlink not recognizing variables (solved)
Replies: 3
Views: 375

Re: Hyperlink not recognizing variables

Okay, so continuing my search on this it seems hyperlink doesn't allow you to use variables this way be default, but there may be a way to restructure the function to allow it? Not 100% understanding, but going through these old posts to get a better grasp: https://lemmasoft.renai.us/forums/viewtopi...
by noeinan
Sat Apr 11, 2020 6:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Hyperlink not recognizing variables (solved)
Replies: 3
Views: 375

Hyperlink not recognizing variables (solved)

I'm trying to make some hyperlink buttons which will change based on what map tile the player is in. Unfortunately, it seems the syntax for this is a bit wonky. First, I just made sure my movement function set a global variable I could reference and tried to plug that into the label dialogue directl...
by noeinan
Fri Apr 10, 2020 2:28 pm
Forum: Ren'Py Questions and Announcements
Topic: Can I set a slider to change multiple values?
Replies: 9
Views: 729

Re: Can I set a slider to change multiple values?

Okay, still working on this slowly, I think maybe I'll need to do some python programming instead of using the default sliders, though? Found this link which talks about the same issue, I'll need to come back to it when my brain is a bit more functional though. https://softwareengineering.stackexcha...
by noeinan
Fri Apr 10, 2020 2:23 pm
Forum: Ren'Py Questions and Announcements
Topic: .format Multiple strings and variables? (solved)
Replies: 7
Views: 549

Re: .format Multiple strings and variables?

Alright! I was stuck for a few days due to brainfog, but once my health cleared up I managed to rewrite my map code and get it working. Thanks for your help! This is what I ended up with: Added this function to my map code: def description(self, x, y, description): self.map[y][x].description = descr...
by noeinan
Thu Apr 09, 2020 10:24 pm
Forum: Ren'Py Questions and Announcements
Topic: .format Multiple strings and variables? (solved)
Replies: 7
Views: 549

Re: .format Multiple strings and variables?

Oh! I misunderstood your post, so when you posted city_map[9][6].desc, "city_map[9][6]" isn't the variable name. https://www.programiz.com/python-programming/methods/built-in/getattr It seems like getattr just does the exact same thing as just typing the variable.description, but doesn't r...
by noeinan
Thu Apr 09, 2020 1:29 pm
Forum: Ren'Py Questions and Announcements
Topic: .format Multiple strings and variables? (solved)
Replies: 7
Views: 549

Re: .format Multiple strings and variables?

Yes, I noticed they were in a different order after I ran it, though I got an end of line error in that one since I didn't switch to python. Thanks for the tip on [var]-- I thought since it was being printed I had to put the variable in brackets. I've just been learning python through RenPy, so I so...
by noeinan
Thu Apr 09, 2020 1:16 am
Forum: Ren'Py Questions and Announcements
Topic: .format Multiple strings and variables? (solved)
Replies: 7
Views: 549

Re: .format Multiple strings and variables?

Thank you! I tried formatting it like this: ""{0}{1}{3}{2}".format("citytile_", "[pc_sprite.y]", "_", "[pc_sprite.x]")" But it looks like I've done something wrong. I'm sorry, but errors were detected in your script. Please correct the erro...
by noeinan
Thu Apr 09, 2020 12:15 am
Forum: Ren'Py Questions and Announcements
Topic: .format Multiple strings and variables? (solved)
Replies: 7
Views: 549

.format Multiple strings and variables? (solved)

I've got a working map for my game that the player character can move around in. I've successfully set it up so that every time the player moves to a new tile it adds "minutes" and calls an event checker, and now I want to store a description for each tile and print that each time the play...