Search found 80 matches
- Sun Jun 23, 2013 3:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: Rock-Paper-Scissors Problems
- Replies: 3
- Views: 1357
Re: Rock-Paper-Scissors Problems
I can't replicate the first problem, but I do see the second one. You're setting playercard to a list containing the player choice instead of the choice itself. If you plug it in directly in a python shell, it turns out something like this: >>> playercard = ["Scissors"] >>> foecard = "...
- Sun May 12, 2013 9:21 am
- Forum: Ren'Py Questions and Announcements
- Topic: Complex data structures of Python with Ren'py
- Replies: 3
- Views: 1694
Re: Complex data structures of Python with Ren'py
Yup, you can import everything (or almost everything? I don't know if there are limitations) the same way you normally would under that "init python:" TrickWithAKnife mentioned. Lists, dictionaries, and classes are all included, so you don't have to import those.
- Sun May 05, 2013 1:07 am
- Forum: Ren'Py Questions and Announcements
- Topic: QTE Randomization
- Replies: 3
- Views: 1834
Re: QTE Randomization
The first problem- the one where you're only hitting two different screens- is because of how you're checking the random number. Say you randomly pull a 1. You'll skip the first if statement and take the second one because 1 != 2. Pull a 2, and you'll go down the first path....but this will also hap...
- Fri May 03, 2013 6:50 am
- Forum: Ren'Py Questions and Announcements
- Topic: Renpy Scrip Help (Syntax/logical)
- Replies: 9
- Views: 1101
Re: Renpy Scrip Help (Syntax/logical)
Ah, that's a syntax error. You want it to be while DummyHP is not less than zero, AKA is greater than or equal to zero, so while DummyHP >= 0: You're right in that "not" is used to negate True/False values, but order of wording is important. If you really wanted to keep it the way you had ...
- Fri May 03, 2013 5:31 am
- Forum: Ren'Py Questions and Announcements
- Topic: Sprites on a Map?
- Replies: 5
- Views: 1671
Re: Sprites on a Map?
Ah, Zenonia! Rare to see somebody who plays that. I did something like this using renders , which can take multiple keys for input to change how you interact with the game...I believe this was the first time I got it working (it's horribly messy; I've changed it a lot since then, but this was the ba...
- Fri May 03, 2013 5:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: Renpy Scrip Help (Syntax/logical)
- Replies: 9
- Views: 1101
Re: Renpy Scrip Help (Syntax/logical)
Because it's not defined the first time you use it :wink: Your while loop is dependent on "DummyINI == RiouINI", but at that moment in time neither are defined at all. Ren'py and Python would both take a look at that and say, "Well, I don't remember ever seeing this variable before. W...
- Wed May 01, 2013 4:15 am
- Forum: Ren'Py Questions and Announcements
- Topic: How can I implement shooting sequences?
- Replies: 6
- Views: 2438
Re: How can I implement shooting sequences?
It would be about the same, codewise anyways. It might be a little bit tougher since enemies would be firing back at you, especially if you wanted to be able to shoot down whatever they toss at you (I have to admit that I have only the barest idea on what Policenauts looks like). Are the shooting se...
- Tue Apr 23, 2013 8:47 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to constantly check variable [solved]
- Replies: 5
- Views: 1953
Re: How to constantly check variable
The only thing I can think of off the top of my head is an overlay. Alternatively, you could make your timer "randomly" call a new label which would include the details of the phone call (but this might not be as random as you'd like, probably a pseudo-random event or something...).
- Sun Apr 21, 2013 6:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Numeric Options [Solved]
- Replies: 3
- Views: 638
Re: Numeric Options [Solved]
Yeah, Python's elseif clause is a little weird... If you want the third option to be both of the previous two, you'd have to put that as the first if (otherwise Python will just see that the variable fits the first, more general condition and ignore the specific one you want). So something like this...
- Sat Apr 20, 2013 8:47 am
- Forum: Creator Discussion
- Topic: Text Parser
- Replies: 11
- Views: 3176
Re: Text Parser
Ah, well. If you're set on Ren'py, try giving this book a lookover. I probably have more of a personal grudge against regex than it actually being horrible to learn (to be fair, who wants to be stuck using regex for 30+ hours? Pray you never have a required project that needs it). Getting simple ins...
- Sat Apr 20, 2013 8:11 am
- Forum: Creator Discussion
- Topic: Text Parser
- Replies: 11
- Views: 3176
Re: Text Parser
Since Ren'py lets you program in Python, you can do close to whatever you want. I'd agree with gekiganwing in saying that it's not the ideal engine for text parsing though. You'd probably end up having to use either a ton of "does the string contain these words" (the tedious way) or regula...
- Fri Apr 19, 2013 8:56 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Numeric Options [Solved]
- Replies: 3
- Views: 638
Re: Numeric Options
Try using if statements:
Code: Select all
if myvalue >= 25:
jump path1
elif myvalue <= -25:
jump path2
else:
jump path3
- Wed Apr 10, 2013 6:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: RPG Frame
- Replies: 4
- Views: 797
Re: RPG Frame
If you're going to use the dungeon crawling frame without the actual dungeon, you pretty much just need the three variables under the first init, the class definitions under the second init, all of the screens except for "move", and the battle label. There's a few useful things for invento...
- Mon Apr 08, 2013 7:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Calling attacks from screen buttons, now with error report!
- Replies: 35
- Views: 4727
Re: Calling attacks from screen buttons, now with error repo
I totally forgot about the new versus old-style classes actually, oops. It wasn't exactly an emphasized topic for our class since the differences aren't that noticeable, but it's screwed me over more than once while using Ren'py. I'll fix that, thanks!
- Fri Apr 05, 2013 7:40 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Calling attacks from screen buttons, now with error report!
- Replies: 35
- Views: 4727
Re: Calling attacks from screen buttons, now with error repo
Actually, since Pointy is-a Skill, it's fine to inherit from Skill! The beginners' rule for inheritance (which gets a lot trickier as you move on) is that if a class is-a subcategory of another class (Dog is-a Animal, Rose is-a Flower), then using inheritance is okay. If a class contains another cla...