Search found 80 matches

by kankan
Fri Apr 05, 2013 3:54 am
Forum: Ren'Py Questions and Announcements
Topic: if then statements not working, possibly canceling out?
Replies: 20
Views: 2596

Re: if then statements not working, possibly canceling out?

Oh, instead of using the quote tags when you post code, use the code tags. It'll save your indentation! But I really can't say what's wrong then...I've probably hit this same problem before and did some dumb, hacky solution instead. If nobody else can figure it out, I'd say try the condition switch ...
by kankan
Fri Apr 05, 2013 3:44 am
Forum: Ren'Py Questions and Announcements
Topic: Calling attacks from screen buttons, now with error report!
Replies: 35
Views: 4135

Re: Calling attacks from screen buttons, now with error repo

The code you posted for specials is different than that of the zip, right? I'm not seeing the offending lines from before in the files, so it's hard to see what went wrong. My guess (??) was that you had pointy() defined within the Skill class (which would make sense). Skill was an extension of Batt...
by kankan
Fri Apr 05, 2013 3:13 am
Forum: Ren'Py Questions and Announcements
Topic: if then statements not working, possibly canceling out?
Replies: 20
Views: 2596

Re: if then statements not working, possibly canceling out?

.....Well, I hate to break it to you, but you've got a lot of indentation errors if that's exactly what your code looks like haha... Make sure when you do ifs, elifs, and elses, the stuff you actually want the code to do if it fits whatever the condition is gets indented behind it. Python's really p...
by kankan
Thu Apr 04, 2013 3:40 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make an imput place that recognizes integers?
Replies: 1
Views: 376

Re: How to make an imput place that recognizes integers?

Renpy.input returns a string, so the computer won't recognize that numbers are in the string until you tell it (no matter how obvious it is that the input is a number). Parsing can be a little tricky, but you can do things like this: $answer = renpy.input("What's your answer?) python: def readNumber...
by kankan
Mon Apr 01, 2013 7:59 pm
Forum: Ren'Py Questions and Announcements
Topic: if then statements not working, possibly canceling out?
Replies: 20
Views: 2596

Re: if then statements not working, possibly canceling out?

I'm not sure why nothing is showing up...what does the code around this area look like? I'm not great at getting things to show up on screen, so it might be better if somebody else around the forums took a look at this haha. As for using ConditionSwitch, it's about the same thing as what you're doin...
by kankan
Sun Mar 31, 2013 11:04 pm
Forum: Ren'Py Questions and Announcements
Topic: if then statements not working, possibly canceling out?
Replies: 20
Views: 2596

Re: if then statements not working, possibly canceling out?

What's probably happening is that you're replacing your result with the placeholder image before you hit the end of your if statements. I'm guessing you want something more like if ABC: show ABC at left elif DEF: show DEF at left elif GHI: show GHI at left #do all the rest of your elifs here and the...
by kankan
Sun Dec 16, 2012 6:48 am
Forum: Creator Discussion
Topic: Need Help !
Replies: 17
Views: 1659

Re: Need Help !

If you're set on creating a VN, tell us about it. Do you have a story in mind? Have the characters been figured out? What are you going to bring to the table? It'll be hard to recruit people who will work seriously with you without some sort of directional focus. If you're looking more to learn abou...
by kankan
Sun Dec 16, 2012 5:06 am
Forum: Creator Discussion
Topic: Card games in Ren'py?
Replies: 8
Views: 4198

Re: Card games in Ren'py?

If you can imagine it and have the capability to program it, you can make pretty much whatever you want. Easier said than done in most cases, but there aren't really any special limits in Ren'py.
by kankan
Sun Dec 02, 2012 10:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Set of values, sorting via amount
Replies: 3
Views: 462

Re: Set of values, sorting via amount

If you need the order of stats, try something like $mystats = [statA, statB, statC, statD, statE] $sorted = [] while mystats != []: sorted.append(max(mystats)) mystats.remove(max(mystats)) perhaps. It leaves mystats empty at the end, while sorted will be the list of stats in descending order. So if ...
by kankan
Fri Nov 30, 2012 9:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Walking Steps
Replies: 1
Views: 395

Re: Walking Steps

I think something like this can be accomplished with some move transitions. $stepper = config.screen_width # Offscreen on the right while stepper > 0: show my_pic at Position(xpos=stepper, ypos=config.screen_height//2) # You'll have to adjust the ypos $renpy.pause() # Wait for a user event $stepper ...
by kankan
Mon Nov 26, 2012 3:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Different responses to different renpy.input entries[Solved]
Replies: 4
Views: 2256

Re: Different responses to different renpy.input entries

Python has built-in methods on strings for capitalizing and such. You can find more here . label examine: $ asknameratz = "name" $ askageratz = "age" $ askjobrats = "job" input = renpy.input("Yeah? What is it now, Case?", "123", length=10) $input.upper() # To all uppercase $input.lower() # To all lo...
by kankan
Fri Nov 23, 2012 6:46 am
Forum: Ren'Py Questions and Announcements
Topic: Renders in renders (Fixed...ish)
Replies: 0
Views: 357

Renders in renders (Fixed...ish)

I heard you liked renders, so I put a render in your render an- okay, I'm done with the overused joke. I've been trying to come up with some code that'll add a render object to a render on an event, which needless to say has not gone very well. To put it more simply, I'm trying to add an image to a ...
by kankan
Mon Nov 19, 2012 6:13 pm
Forum: General Discussion
Topic: Can you still remember how you found these forums?
Replies: 21
Views: 1890

Re: Can you still remember how you found these forums?

My friend came up with an idea for a fangame and decided that since I was taking Computer Science classes, I could be her programmer. Several problems: I had been programming for approximately 3 weeks by that time (luckily my course was teaching Python), had never seen or heard of Ren'py before that...
by kankan
Mon Nov 19, 2012 5:46 pm
Forum: Ren'Py Questions and Announcements
Topic: How to show some menu choices and hide others?
Replies: 2
Views: 527

Re: How to show some menu choices and hide others?

Ah, you almost got it. The syntax is right, but your indentation is a bit off. Notice that in your second menu, your two choices for Aulay and Sholto are lined up under "I feel like I'm..."? Move the indentation to the right once. menu: "I feel like I'm getting involved in something I shouldn't . . ...
by kankan
Fri Nov 09, 2012 7:03 pm
Forum: Old Threads (– September 2014)
Topic: I need some help extending a combat script
Replies: 8
Views: 748

Re: I need some help extending a combat script

I'm still confused at what you want. Do you need somebody to write the classes for skills, integrate an existing class with the character classes, design the different skills (as in effects and characteristics of each skill), do the graphics for the skills, extend a skill class with different skills...