Tsukihime

Large Choices - "built-in" multiple choices

11 posts in this topic

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

 

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

 

large_choice2

 

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

 

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.

Edited by Tsukihime
Archeia, VicWhite, SomaelCK and 4 others like this

Share this post


Link to post
Share on other sites

Another great script. This one is very useful and easy to use. Great job!

Share this post


Link to post
Share on other sites

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...

Edited by Tsukihime

Share this post


Link to post
Share on other sites

Just an idea, you might want to add a config option to specify the maximum number of lines that the choices can extend to.

Share this post


Link to post
Share on other sites

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.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

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.

Edited by pinkapinkie

Share this post


Link to post
Share on other sites

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


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.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

This has to be the easiest more choices scripts for VX I've ever seen!

 

Thanks very much for this Tsukihime!

Share this post


Link to post
Share on other sites

Fixed bug where the cancel choice selected the wrong choice (eg: if you selected choice 7, it would incorrectly go to choice 6)

Share this post


Link to post
Share on other sites

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_choices
In order to combine the following show choice commands together. This must be done before each set of large choices.

large_choices3.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.