Large Choices - "built-in" multiple choices

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
This script combines groups of "show choice" options together as one large command. This allows you to create more than 4 choices by simply creating several "show choice" commands in a row. No script call required!


Download


Get it at Hime Works


Usage


Adding choices


Add a show choice command and fill it out as usual.





If you want more choices, just add another one, and fill it out as usual.





Only show choice commands that appear immediately after a previous show choice command on the same level will be merged together.


Cancel choice


The choice editor comes with 6 options when you press the "cancel" button


1. Disallow


2. Choice 1


3. Choice 2


4. Choice 3


5. Choice 4


6. Branch


Each "show choice" command comes with their own options. All you need to do is select the cancel choice in the appropriate "show choice" command and the script sets it up for you! You should set the other commands to "disallow" otherwise I will simply choose the last one.


For the branch choice, all cancel branches will be executed if you choose that, so you should only create a cancel branch on the very last group of choices.


Manual Combine





There is an option in the configuration section called "Manual Combine". By default, this is set to `false`, which means all choice commands will be automatically combined together. If you would like to be able to manually specify whether choice commands should be combined or not, you can set this to `true`.


When manual combining is enabled, before your first large show choice command, you must make a script call


combine_choices


In order to combine the following show choice commands together. This must be done before each set of large choices.
 
Last edited by a moderator:

Jesse - PVGames

Game and Graphics Developer
Veteran
Joined
Jun 23, 2012
Messages
1,790
Reaction score
2,787
First Language
English
Primarily Uses
Another great script. This one is very useful and easy to use. Great job!
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Script updated to support the "branch" cancel choice.

For the branch choice, all cancel branches will be executed if you choose that, so you should only create a cancel branch on the very last group of choices.

Note that this script overwrites command_403 in the interpreter so that it doesn't check a hardcoded value.

I might change it further so that it will ignore any intermediate cancel branches...
 
Last edited by a moderator:
Joined
May 21, 2012
Messages
83
Reaction score
4
First Language
English
Primarily Uses
Just an idea, you might want to add a config option to specify the maximum number of lines that the choices can extend to.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Just an idea, you might want to add a config option to specify the maximum number of lines that the choices can extend to.
It is a good idea, but I won't be adding it to this script for compatibility reasons: the only purpose of this script is to merge "Show Choice" commands, and nothing more.

Choice Options has a config option for that, which you can set for each event as well. For now it is based on Enelvon's scrolled choices script. I will implement paginated choices (first post in the request) when I have time.
 
Last edited by a moderator:
Joined
May 21, 2012
Messages
83
Reaction score
4
First Language
English
Primarily Uses
Alright, that makes sense. And btw, paginated choices sound awesome.
 

pinkapinkie

Veteran
Veteran
Joined
Mar 30, 2012
Messages
69
Reaction score
6
First Language
Italian
Primarily Uses
There seems to be a bad crash when selecting a choice or pressing the cancel button.

My bad, was an incompatibily with another script.

Is it possible to activate or deactivate options with switches?

If switch 1 is ON then choice is active, else is not.

Tried with choice_option:)condition, 1, "$game_switches[4] = true") doesnt seem to work.
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
There was a bug where the first set options from a nested Show Choices command was numbered incorrectly.

The issue arises in cases where you have something like



Code:
Show Choices [1, 2]
When 1
  Hi
When 2
  Show Choices [3, 4]
  When 3
  When 4
  Show Choices [5, 6]
  When 5
  When 6
The 3 and 4 would be considered part of the previous show choices, and therefore wouldn't respond correctly.

The 5 and 6, however, were numbered correctly, so basically everything would work as expected except when you chose option 3 or 4.

It has been resolved and the script updated.

If switch 1 is ON then choice is active, else is not.

Tried with choice_option:)condition, 1, "$game_switches[4] = true") doesnt seem to work.
You would write

"$game_switches[4] == true"

Because one = is assignment and is evaluated to true since it is not nil or empty or false.
 
Last edited by a moderator:

AeonSpark

Veteran
Veteran
Joined
Aug 21, 2012
Messages
102
Reaction score
5
First Language
English
Primarily Uses
This has to be the easiest more choices scripts for VX I've ever seen!

Thanks very much for this Tsukihime!
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Fixed bug where the cancel choice selected the wrong choice (eg: if you selected choice 7, it would incorrectly go to choice 6)
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Script updated

There is an option in the configuration section called "Manual Combine". By default, this is set to `false`, which means all choice commands will be automatically combined together. If you would like to be able to manually specify whether choice commands should be combined or not, you can set this to `true`.

When manual combining is enabled, before your first large show choice command, you must make a script call

combine_choicesIn order to combine the following show choice commands together. This must be done before each set of large choices.
 

Rudostan

Descent Game Programmer/ Terrible Artist
Veteran
Joined
May 21, 2018
Messages
62
Reaction score
4
First Language
English
Primarily Uses
N/A
Your script works like a charm to me. Expect yourself to be in credits. Thanks! My project is not commercial.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top