Search found 1134 matches
- Wed Apr 08, 2020 10:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Keyerror u'npc1' when generating multiple NPCS (solved)
- Replies: 8
- Views: 510
Re: Keyerror u'npc1' when generating multiple NPCS
Looks like the quotes is what did it! Thanks, it's working now
- Wed Apr 08, 2020 7:40 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Keyerror u'npc1' when generating multiple NPCS (solved)
- Replies: 8
- Views: 510
Re: Keyerror u'npc1' when generating multiple NPCS
Seems like I'm still getting the same u error, even after removing the space I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 94, in script "Num: [npc_dict['npc1'].num] Race: [npc_dict['npc1'].race] Type: [npc_dict['npc1'].type] Proc...
- Wed Apr 08, 2020 7:24 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Keyerror u'npc1' when generating multiple NPCS (solved)
- Replies: 8
- Views: 510
Re: Keyerror u'npc1' when generating multiple NPCS
Hmmm, it seems using dict I'm getting the exact same error? python: def GenerateDict(npcnum): npc_dict = {} for i in range(npcnum): npc_dict['npc {}'.format(i+1)] = NPCList(racelist, typelist, procaselist, 1) return npc_dict $ npc_dict = GenerateDict(3) "Num: [npc_dict['npc1'].num] Race: [npc_d...
- Wed Apr 08, 2020 5:40 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Keyerror u'npc1' when generating multiple NPCS (solved)
- Replies: 8
- Views: 510
Re: Keyerror u'npc1' when generating multiple NPCS
Oof! I feel silly, thanks for pointing out my mistake with the return being misplaced and just overwriting my variable instead of what I was trying to do. So, what I'm actually trying to do is this: I've got a function that generates a random npc, with all the traits. It's a class that stores the np...
- Wed Apr 08, 2020 11:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: Keyerror u'npc1' when generating multiple NPCS (solved)
- Replies: 8
- Views: 510
Keyerror u'npc1' when generating multiple NPCS (solved)
So, I've got my NPC generator working for generating just one NPC like so: $npc = NPCList(racelist, typelist, procaselist, 1) "Num: [npc.num] Race: [npc.race] Type: [npc.type] Procase: [npc.procase] Level: [npc.level] Insecurity: [npc.insecurity_str] Health: [npc.health] Build Desc: [npc.buildd...
- Wed Apr 08, 2020 10:47 am
- Forum: Ren'Py Questions and Announcements
- Topic: List keeps outputting u between strings? (solved)
- Replies: 3
- Views: 332
Re: List keeps outputting u between strings?
Thanks for the advice, that seems to work!
- Wed Apr 08, 2020 10:42 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can I set a slider to change multiple values?
- Replies: 9
- Views: 703
Re: Can I set a slider to change multiple values?
Hmmmm, I think I kinda see what you're getting at. What I really want is for all three bars to be linked so the sum of each of the three variables can only add up to 100, and all variables can only be 0 or a positive number. It seems simple when I try to explain in, because I'm just trying to make i...
- Wed Apr 08, 2020 3:24 am
- Forum: Ren'Py Questions and Announcements
- Topic: List keeps outputting u between strings? (solved)
- Replies: 3
- Views: 332
List keeps outputting u between strings? (solved)
I've been writing a class to help generate random npcs for my game, but when I'm testing out the class traits that are lists show up as u"string", u"string" instead of string, string. I'd like to display the individual parts of the list in text without the u and quotations showin...
- Tue Apr 07, 2020 7:50 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Can I set a slider to change multiple values?
- Replies: 9
- Views: 703
Re: Can I set a slider to change multiple values?
Okay, so it's almost 100% working but not quite. Right now I'm running into two problems. First, which I haven't figured out what is causing the problem yet, is that with this code setup, the very first number change does not apply the SetVariable action. This means all the numbers are 1 off, but I ...
- Tue Apr 07, 2020 7:03 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Can I set a slider to change multiple values?
- Replies: 9
- Views: 703
Re: Can I set a slider to change multiple values?
I'm not getting an error message when I use SetVariable as the action (guess I had the wrong syntax before?) but it's also not changing the variables on the screen. When I test it out, the label for the second bar doesn't change, and the slider also doesn't move to show the new value, even if I exit...
- Tue Apr 07, 2020 6:32 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Can I set a slider to change multiple values?
- Replies: 9
- Views: 703
Re: Can I set a slider to change multiple values?
Okay I *kinda* have some of this working, if I put the calculations at the start of the screen. Then if I exit the screen and re-enter it will recalculate the variables. The only problem is, of course, needing to exit and re-enter the screen and the fact that even though the variable changes, the sl...
- Tue Apr 07, 2020 6:12 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Can I set a slider to change multiple values?
- Replies: 9
- Views: 703
Re: Can I set a slider to change multiple values?
Thanks for the quick response! For the first solution, I tried setting action and got this: I'm sorry, but errors were detected in your script. Please correct the errors listed below, and try again. File "game/screens.rpy", line 1191: u'action' is not a keyword argument or valid child for ...
- Tue Apr 07, 2020 5:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Can I set a slider to change multiple values?
- Replies: 9
- Views: 703
Can I set a slider to change multiple values?
Hey! I'm making some custom sliders for my game's preferences and I am wanting to make it so the player can change percentages of a variable with more than two outcomes. Is it possible to set a slider bar to change more than one variable at a time, the second one inverse? This is what I have right n...
- Wed Feb 06, 2019 3:54 am
- Forum: Asset Creation: Music, Sound, and Movies
- Topic: Best microphone for voice acting?
- Replies: 8
- Views: 2997
Re: Best microphone for voice acting?
I use a Blue Yeti and it is extremely high quality at a great price, and USB plugs right into the computer. I bought a second one when my spouse dropped and broke mine, 10/10 would recommend.
- Tue Jan 08, 2019 4:01 am
- Forum: Ren'Py Questions and Announcements
- Topic: Onlayer Command Screen Language vs Show Statement (solved)
- Replies: 1
- Views: 443
Re: Onlayer Command Screen Language vs Show Statement
Got some advice from someone on Discord, it seems you can't have one screen with multiple images on different layers. Instead, I just made multiple screens and got it to work.