Search found 111 matches

by Human Bolt Diary
Sat Nov 02, 2019 9:31 am
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 118
Views: 56487

Re: Encyclopaedia / Bestiary Framework

I've released version 2.3. The Encyclopaedia now takes the optional argument `tint_locked_image`. If set to False, EncEntries without a specified locked_image will not use a tinted version of the image, instead just using the image. This is mainly for times when a Displayable is used for the image ...
by Human Bolt Diary
Sun Sep 29, 2019 9:45 pm
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 118
Views: 56487

Re: Encyclopaedia / Bestiary Framework

I've released version 2.3. The Encyclopaedia now takes the optional argument `tint_locked_image`. If set to False, EncEntries without a specified locked_image will not use a tinted version of the image, instead just using the image. This is mainly for times when a Displayable is used for the image a...
by Human Bolt Diary
Fri Jun 28, 2019 7:09 am
Forum: Ren'Py Cookbook
Topic: Random Music Generator
Replies: 3
Views: 1312

Re: Random Music Generator

No need for all those if statements: # Music notes define notes = [ "images/a4.mp3", "images/a-4.mp3", "images/b4.mp3", "images/c4.mp3", "images/c-4.mp3", "images/d4.mp3", "images/d-4.mp3", "images/e4.mp3", "images/...
by Human Bolt Diary
Sat May 18, 2019 12:51 pm
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 118
Views: 56487

Re: Encyclopaedia / Bestiary Framework

Most likely, you're calling a screen that takes an argument, but have not provided an argument. As per the documentation , calling the screen requires passing an Encyclopaedia object to it. Exception: Required parameter enc has no value. Get error when testing the zip of it as well. Haven't edited a...
by Human Bolt Diary
Wed Mar 20, 2019 12:07 am
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 118
Views: 56487

Re: Encyclopaedia / Bestiary Framework

I'm not sure if anybody has asked this already, but is there a way to make the bestiary conform to a save file? When I use the global encyclopedia, the unlocked entries are already unlocked whenever I start a new game. The only way to lock them again would be to delete the persistent file. On the o...
by Human Bolt Diary
Sun Mar 17, 2019 11:14 pm
Forum: Works in Progress
Topic: The Hero Arrives in 35 Minutes
Replies: 5
Views: 1187

Re: The Hero Arrives in 35 Minutes

I've tried the game and it's great! I love the idea of picking the appearances and expressions then it shows in the story, also those options are unique which give me the sense of understanding this character that I played. I was sad that it ended quickly but it makes me replay the game again and a...
by Human Bolt Diary
Thu Feb 21, 2019 12:06 am
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 118
Views: 56487

Re: Encyclopaedia / Bestiary Framework

v2.2 of the Encyclopaedia Framework has been released. Download is available at: https://github.com/jsfehler/renpy-encyclopaedia/releases The following changes were made: - Sort actions now use the get_selected method - encyclopaedia_list screen no longer sorts by number on exit - Sorting buttons on...
by Human Bolt Diary
Thu Feb 21, 2019 12:02 am
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 118
Views: 56487

Re: Encyclopaedia / Bestiary Framework

Hi ! Your framework is really great and work like a charm on my project ! However I have some questions, if you do not mind. - Then we make an entry, and update it after, is it possible to make a tag "update!", like the "new!" one then the player unlock an entry ? - Is it possib...
by Human Bolt Diary
Sat Feb 09, 2019 4:37 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Does anyone know if there's a code/tutorial like this? Mini-game idea?
Replies: 2
Views: 600

Re: Does anyone know if there's a code/tutorial like this? Mini-game idea?

You can define each recipe as an object that takes a list of ingredient names. Each ingredient is then placed into a dictionary so you can track if it's been added or not: class Recipe(store.object): def __init__(self, ingredients): self.ingredients = {i: False for i in ingredients} def add_ingredie...
by Human Bolt Diary
Thu Feb 07, 2019 2:56 am
Forum: Ren'Py Questions and Announcements
Topic: TCG Workaround for displaying your obtained cards
Replies: 7
Views: 867

Re: TCG Workaround for displaying your obtained cards

I'm going to second what philat said and give you a strong recommendation to learn how to use classes and for loops. You definitely don't seem to have enough programming knowledge or python experience, so you should practice that. I would read the link he gave you and think of how to solve your issu...
by Human Bolt Diary
Sun Feb 03, 2019 12:55 am
Forum: Ren'Py Cookbook
Topic: Example for a turn-based battle system
Replies: 0
Views: 3519

Example for a turn-based battle system

Download at: https://github.com/jsfehler/the_hero_arrives_in_35_minutes This example is for anyone interested in building a turn-based battle system. It's not a framework, just a dump of source code. I've tried to add as many comments as possible and organize everything to be easy to read, but YMMV....
by Human Bolt Diary
Sat Feb 02, 2019 2:33 am
Forum: Ren'Py Questions and Announcements
Topic: How to loop an array when it ends? Here are my failures...
Replies: 3
Views: 491

Re: How to loop an array when it ends? Here are my failures...

What you want is a modulo: https://en.wikipedia.org/wiki/Modulo_operation

Code: Select all

textbutton "Foo" action SetVariable("counter", (counter + 1) % len(myarray))
The remainder can never be greater than the length of your list

ie:

1 % 4 = 1
2 % 4 = 2
3 % 4 = 3
4 % 4 = 0
5 % 4 = 1
by Human Bolt Diary
Fri Jan 25, 2019 4:44 pm
Forum: Works in Progress
Topic: The Hero Arrives in 35 Minutes
Replies: 5
Views: 1187

Re: The Hero Arrives in 35 Minutes

I just gave it a go, so right now I get to the part where it says "your name is: blahblahblah" and then it freezes or stops. It does not return to the main menu, though the Esc menu will still open. I tried twice with two different sets of choices and the same thing happened both times. I...
by Human Bolt Diary
Fri Jan 25, 2019 5:09 am
Forum: Works in Progress
Topic: The Hero Arrives in 35 Minutes
Replies: 5
Views: 1187

The Hero Arrives in 35 Minutes

A while ago I was on a podcast to discuss failed game ideas and why they never went anywhere. Specifically, an idea for a game called "The Heroes Arrive in 35 Minutes". The podcast itself goes into more detail about why we thought the game could be interesting, and why it probably wouldn't...
by Human Bolt Diary
Fri Jan 04, 2019 11:34 pm
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 118
Views: 56487

Re: Encyclopaedia / Bestiary Framework

Off the top of my head, remove the Return action from the button that closes the encyclopaedia and just hide the screen. If that fails, provide a minimal example for what you're doing and I'll see what I can figure out.