Making Generators With Renpy

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
LilyInTheWater
Newbie
Posts: 3
Joined: Fri Apr 15, 2022 5:23 pm
Contact:

Making Generators With Renpy

#1 Post by LilyInTheWater » Sat May 14, 2022 12:18 am

This is a bit of a difficult question. So lets say I want the game to take a list of I wrote and fill it out based on a list of possible answers to each question? And then it saves the form in an external text document in another folder to reference later.

I'm working on a game with some others with proceedural generation involving fantasy worlds that needs stuff like generate fruits, animals, trees, and whatnot, and I would like to also take a crack at making my own generators. What I'm trying to do is to get the game to generate a list of different aspects. Say, I want to generate a fruit so I want the game to fill out a list of stuff like "Is it edible? (yes, no) If yes, how many seeds are in each fruit? (10, 9, 8, 5, ect ect), What is the fruit's exterior like? (Not hairy, fuzzy, it has spikes, it has a hard shell that must be cracked open) What is it's flavor like? (sour, sweet, mild flavor, salty)."

I do know how to add probability to choices! So I don't need to know how to do that. Everything I see related to this is all about number crunching and not about randomly choosing values, so I'm a little unsure if I can translate what I've learned into doing this.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Making Generators With Renpy

#2 Post by PyTom » Sat May 14, 2022 12:39 am

I think the question is - what do you plan on doing with the answers to the questions, beyond storing them in variables? Could you describe in plain-text how you want to go from the answers to questions to normal text?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
LilyInTheWater
Newbie
Posts: 3
Joined: Fri Apr 15, 2022 5:23 pm
Contact:

Re: Making Generators With Renpy

#3 Post by LilyInTheWater » Mon May 16, 2022 1:16 am

PyTom wrote:
Sat May 14, 2022 12:39 am
I think the question is - what do you plan on doing with the answers to the questions, beyond storing them in variables? Could you describe in plain-text how you want to go from the answers to questions to normal text?
So when I want to generate something, I think it will fall either under "what qualities a specific item has, in terms of what the player can do with them + how the player can use it in crafting" or an "npc" and i know those are kinda different, and I want to see which one would probably be easier to tackle first.

Post Reply

Who is online

Users browsing this forum: Google [Bot], mold.FF