Large Choices - "built-in" multiple choices

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,872
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.


large_choice1.jpg



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


large_choice2.jpg



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


large_choices3.jpg



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,795
Reaction score
2,799
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,872
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,872
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,872
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,872
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,872
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.
large_choices3.jpg
 

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.
 

Latest Threads

Latest Posts

Latest Profile Posts

Signed a lease on a new place today. Back into town, closer to shops, family and takeaway - none of those could be a good thing! 10 days to moving date.
let me introduce you to my worlds source of "wool". A pretty simple-minded, easily scared and mostly blind, double-headed big wooly bird thingy :D Children may be able to ride on a trained one, but they don't support the weight of adults, so they aren't suitable for transportation. And herders use the shown tool to give them sound commands
6nwyqEJ.png
This Life is a Dream is in full production! More pics and some free promo assets coming soon!
Dragonfly3116 wrote on Redweaver's profile.
i need to ask do you mind sending me a link to tutorial town an legend of ancients Please My new Email is necroboy1973@gmail.com
I Am A Member On The Site Here As Well If Your Still teaching Let Me Know Thanks Joseph
Added store elements.
44JtdpE5n4jQMFkSi7pACW.png

2uqvqT3uCWxcXAhlyZokxg.png

The next step will be to start making props (including distillers).

Forum statistics

Threads
110,524
Messages
1,053,923
Members
143,613
Latest member
captnemo
Top