Search found 28 matches

by carrot
Thu Jul 26, 2018 10:28 am
Forum: I am a Programmer, Director, or Other
Topic: [PROGRAMMER] [Ren'Py/Unity/Web] Experienced, flexible, and friendly developer available to hire. [unavailable]
Replies: 13
Views: 5098

Re: [DEVELOPER | PAID] [Ren'Py/Unity | Python/C#/Web] Experienced, flexible, and friendly developer available to hire.

I'm available now mostly for shorter term projects (<1 month), but do still get in touch if your project is longer than that and we can figure something out.
by carrot
Mon Nov 27, 2017 5:58 am
Forum: Ren'Py Questions and Announcements
Topic: Confused about maximum recursion depth
Replies: 3
Views: 797

Re: Confused about maximum recursion depth

I've run that section a few times and there's nothing wrong with it (except the missing indentation, but I'm guessing that's just due to copy/paste). So it must be somewhere else. Which line is 1131? You'll just have to follow the code through manually and look for anywhere that you have circular ju...
by carrot
Wed Sep 20, 2017 4:36 pm
Forum: Ren'Py Questions and Announcements
Topic: sqlite3 with Ren'py
Replies: 4
Views: 1631

Re: sqlite3 with Ren'py

Have you looked at PyDbLite?

It's mostly the same as sqlite3 API-wise, and is pure python, so should run fine in renpy.
by carrot
Thu Aug 17, 2017 7:31 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] 2 Functions Interact With Each Other Question?
Replies: 4
Views: 405

Re: [SOLVED] 2 Functions Interact With Each Other Question?

There's no way to do it with a local variable, by definition. If it's local to the method, it's discarded once the method returns. There are a whole bunch of ways to pass data around between methods, but local variables don't persist outside of their scope, so unfortunately that's not something that...
by carrot
Wed Aug 16, 2017 5:26 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] 2 Functions Interact With Each Other Question?
Replies: 4
Views: 405

Re: 2 Functions Interact With Each Other Question?

In DAMAGE_DEBUFF_SKILL_PLAYER, just set:

Code: Select all

enemy.DEBUFFED_DAMAGE_HOLDER = 20 * enemy.PLAYER_DAMAGE / 100
instead of having it be a variable local to that method. And then when you're in COOLDOWNS_CHECK you can do:

Code: Select all

self.PLAYER_DAMAGE += self.DEBUFFED_DAMAGE_HOLDER
by carrot
Fri Aug 11, 2017 7:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Actual guides?
Replies: 58
Views: 5539

Re: Actual guides?

Clear everything from scripts.rpy on a new project. Put in this:

Code: Select all

label start:
    show screen myscreen
    pause
    return

screen myscreen:
    textbutton "MyTextButton" action Jump("mylabel")

label mylabel:
    "The button worked."
by carrot
Fri Aug 11, 2017 6:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Actual guides?
Replies: 58
Views: 5539

Re: Actual guides?

I'm assuming that the code just isn't formatted properly on here. If it's not and you don't have any indentation, I wouldn't be surprised it didn't work. screen myscreen: textbutton "MyTextButton" action Jump("mylabel") label mylabel: "The button worked." Put this into ...
by carrot
Fri Aug 11, 2017 5:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Actual guides?
Replies: 58
Views: 5539

Re: Actual guides?

Have you looked at the Screens and Screen Language section in the documentation? Specifically, textbuttons.

If you haven't already, it might be a good idea to learn some basic Python, and go through the cookbook to get an idea of how certain things are done.
by carrot
Fri Aug 11, 2017 5:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Code question: sorting through a list doesn't work after appending a new item to it
Replies: 4
Views: 1191

Re: Code question: sorting through a list doesn't work after appending a new item to it

Is your indentation right, here (in inventory_screen)? if next_inv_page > int(len(inventory.items)/24): $ next_inv_page = 0 for item in inventory.items: # <--- I'm talking specifically about this line ... The item-drawing loop is nested in the same if-statement as your check for the inventory page, ...
by carrot
Sat Aug 05, 2017 11:03 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Help: Specific status bar dont appear when it reach 0 or less
Replies: 2
Views: 401

Re: Help: Specific status bar dont appear when it reach 0 or less

As an aside, you can use a dollar sign ($) to do a one-line python statement: $ statusTruth += 3 Without being able to see the definition of 'chamarBarraLie' I can't tell you if it's a problem within that label. In your church label, though, you only call the status bar label if statusTruth is more ...
by carrot
Sat Aug 05, 2017 10:58 am
Forum: Ren'Py Questions and Announcements
Topic: How to make an "overlapping" music loop?
Replies: 2
Views: 1235

Re: How to make an "overlapping" music loop?

There are ways to do this by using multiple audio channels. If you google "renpy crossfade" there are some that come up in the first few results.
by carrot
Fri Aug 04, 2017 5:28 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Reading Variables in Save Files from Save Screen
Replies: 3
Views: 804

Re: Reading Variables in Save Files from Save Screen

You can register a callback which can add data to a dictionary (which is then saved into the savegame zip, as JSON in a file named 'json') when a game is saved: def my_save_method(dict): pass # add data to the dictionary config.save_json_callbacks.append(my_save_method) And then in screens.rpy, you ...
by carrot
Thu Aug 03, 2017 6:41 pm
Forum: Ren'Py Questions and Announcements
Topic: imagebutton : Jumping in a variable location.
Replies: 4
Views: 1022

Re: imagebutton : Jumping in a variable location.

You could try:

Code: Select all

$ renpy.jump("label here")
There are other python equivalents here.

Edit: Whoops, not this. I completely missed what you were actually trying to do.