A way to test every possible combination of choices?

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
swampie2
Newbie
Posts: 21
Joined: Sun Oct 04, 2015 6:30 pm
Projects: Missing stars
Organization: Somnova
Contact:

A way to test every possible combination of choices?

#1 Post by swampie2 » Thu Jan 05, 2017 2:25 pm

Hey everyone. So I've been working on testing the points system in our visual novel and I've run into a wall.

We have a lot of choices, rough math leads me to believe there are over 4000 different outcomes in point values over six characters and I need to know them all to make sure it's always possible to get onto one route.

Is there any way I can make renpy test every single combination of choices and spit out the results of each combination at the end? Cheers!

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: A way to test every possible combination of choices?

#2 Post by PyTom » Thu Jan 05, 2017 10:01 pm

Sorry, but this isn't something you can do. What you probably want to do is to break your game logic out into a python program, one that makes each of the decisions in the game for you. You can do the simulation there, and record which outcomes you get.
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

Post Reply

Who is online

Users browsing this forum: _ticlock_