Search found 1134 matches
- Fri Dec 04, 2020 7:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Layered Image Not Accepting Class Variables... (solved)
- Replies: 9
- Views: 3032
Layered Image Not Accepting Class Variables... (solved)
I am using layered images to have a customizable character + clothing. However, when I try to use variables inside my player class, I keep getting an error saying player is not defined. But I clearly did define player right after the start_label... #PLAYER VARIABLES $ player = PlayerList() layeredim...
- Sat Nov 28, 2020 10:53 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Label Undefined when Calling from For Loop (solved)
- Replies: 5
- Views: 655
Re: Label Undefined when Calling from For Loop
No need to apologize at all, I actually super appreciate the corrections. So, I'm having a bit of a hard time understanding and part of it is that there is 18+ stuff in the code and so every time I've posted problems I've had to go through and change everything to make it PG, but due to that it beco...
- Sat Nov 28, 2020 9:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Label Undefined when Calling from For Loop (solved)
- Replies: 5
- Views: 655
Re: Label Undefined when Calling from For Loop
That syntax seems to work for the most part, the only issue I'm running into now is... I'm not getting any error messages, but the label that I'm calling is not doing anything at all. Lines were showing up before implementing the for loop, but after the conversion just nothing happens. I've got this...
- Sat Nov 28, 2020 8:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Label Undefined when Calling from For Loop (solved)
- Replies: 5
- Views: 655
Re: Label Undefined when Calling from For Loop
Oh! Thank you. I think that is working, I can almost finish testing it I have just run into one more error related to the changes.
- Sat Nov 28, 2020 7:56 pm
- Forum: Ren'Py Questions and Announcements
- Topic: RenPy Dialogue and Extend Inside Python Block (solved)
- Replies: 4
- Views: 587
Re: RenPy Dialogue and Extend Inside Python Block
Aaah, that's good to know. I don't imagine it matters for this specific part of the code, since it's kinda combat so I wouldn't necessarily want them to be able to save in the middle of the fight anyhow. I have not tested the renpy.extend, but found a solution to my issue where I don't think I need ...
- Sat Nov 28, 2020 7:52 pm
- Forum: Ren'Py Questions and Announcements
- Topic: RenPy Dialogue and Extend Inside Python Block (solved)
- Replies: 4
- Views: 587
Re: RenPy Dialogue and Extend Inside Python Block
Ah, thank you, that makes sense. So while loops work without python, that's good to know.
And thanks for the renpy.say syntax! I will try it out with renpy.extend and see if that works.
And thanks for the renpy.say syntax! I will try it out with renpy.extend and see if that works.
- Sat Nov 28, 2020 7:48 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Label Undefined when Calling from For Loop (solved)
- Replies: 5
- Views: 655
Label Undefined when Calling from For Loop (solved)
Troubleshooting how best to integrate for loops to my existing code, so I can run the whole block with multiple NPCs. While trying to figure out something else, I came up with the idea that instead of messing with my code, I can just put the for loop in the section where I call the label instead. Ho...
- Sat Nov 28, 2020 6:46 pm
- Forum: Ren'Py Questions and Announcements
- Topic: RenPy Dialogue and Extend Inside Python Block (solved)
- Replies: 4
- Views: 587
RenPy Dialogue and Extend Inside Python Block (solved)
I have been meaning to ask this for a while, but what is the way to add dialogue inside a python block? I'm needing to add for loops to a bunch of stuff that previously just used single python lines, but for loops I believe only work inside a python block? (I have tried searching the forum but it ke...
- Sat Nov 28, 2020 5:12 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Unicode Error in For Loop (solved)
- Replies: 2
- Views: 446
Re: Unicode Error in For Loop
Ah, that did it! Thank you!
- Sat Nov 28, 2020 4:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Unicode Error in For Loop (solved)
- Replies: 2
- Views: 446
Unicode Error in For Loop (solved)
Hello! I am trying to simplify some code so I can eventually add multiple NPCs to this without having to write out a copy for each possible NPC. However, when I added my loop, I'm getting an error message 'unicode' object has no attribute 'lhand_state' which I *think* is because when I iterate throu...
- Wed Sep 16, 2020 7:42 pm
- Forum: Ren'Py Cookbook
- Topic: Ren'Py QuickStart [Gallery, Codex, Scheduler, Tutorials etc]
- Replies: 96
- Views: 59453
Re: Ren'Py QuickStart [Gallery, Codex, Scheduler, Tutorials etc]
I'm really glad that you found it helpful! If I have time, I'll go over and update things to make it more polished, I'm glad folks are still getting some use out of this.
- Fri Jul 17, 2020 8:28 pm
- Forum: Ren'Py Questions and Announcements
- Topic: For loop in Screen to populate buttons?
- Replies: 1
- Views: 430
For loop in Screen to populate buttons?
Hello! I am trying to make a very simple shop. I have all the code for my inventory management, but am struggling with getting the shop itself working. I have a random generator (custom class I made) that creates random toys. I want the shop to take a dictionary and iterate through a for loop, addin...
- Wed May 20, 2020 12:28 am
- Forum: Ren'Py Questions and Announcements
- Topic: Syntax Question: Accessing Dictionary Using Variable as Key? (solved)
- Replies: 2
- Views: 298
Re: Syntax Question: Accessing Dictionary Using Variable as Key?
Doing it like that unfortunately also doesn't work, however, I did just figure it out! Been ramming my head against it for a while (not helped by me initially using the wrong search terms) and I eventually found the answer here: https://renpy.org/wiki/renpy/doc/reference/Text#Interpolation So for my...
- Tue May 19, 2020 11:37 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Syntax Question: Accessing Dictionary Using Variable as Key? (solved)
- Replies: 2
- Views: 298
Syntax Question: Accessing Dictionary Using Variable as Key? (solved)
Hello! I was wondering if there was a way I could replace the index of a dictionary with a variable? To elaborate, here is what I am trying to do: I've got a random generator which creates a dictionary, each index is one character, each with their own set of stats. Normally, if I want to use the gen...
- Sun May 17, 2020 8:16 am
- Forum: Ren'Py Questions and Announcements
- Topic: Modifying Extend to Show All At Once? (solved)
- Replies: 6
- Views: 487
Re: Modifying Extend to Show All At Once?
Ah, thanks! I didn't realize {nw} was used like this. Much appreciated!