Choice Options - Fine-tune your choices

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
This script provides "choice options" that provide finer control over your choices.


You can now hide choices that should not be shown using a few simple conditions rather than duplicating a choice list several times using conditional branches.


You can disable choices from being selected, which is simply impossible under normal circumstances.


Additional options may be added in the future





Download


Get it at Hime Works
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Very nice, but I don't understand how this would be called from within an event. How do you set out the [When] processing associated with each choice, since that's usually created by the Show Choices command itself. Can you provide a screenshot of an event that uses this (the whole event command window, with the choices and the subsequent processing)?

Can this be used in commercial games? Does it require Raizen884's script and do you both need to be credited?
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Outdated post
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Love it! I'll keep an eye on this (as to when it's available for use commercially) - it could really come in handy in my game.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
I have re-written this script and removed the multiple choice implementation in order to make it more flexible.

Use the Large Choices script to provide multiple choices, or use Raizen's or Fomar's scripts which achieve the same results.

A modified version of Enelvon's scrolling choices has been implemented.

The default number of choices is 4 and is set in the configuration.

You can also change it specifically for each Show Choices command by making the script call



Code:
$game_message.num_visible_choices = n
For some integer n > 0

The script is free for use in commercial and non-commercial projects with appropriate attribution.
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
I have fixed a bug involving hidden choice.

I have also provided a new script interface that should be easier to use for your events.

The following choice options are currently available

hide_choice(num, condition)disable_choice(num, condition)color_choice(num, color_id)I have left the `choice_option` method available in case anyone is using that, but for new users just go with these shorter method calls.



This script is compatible with Large Choices
 
Last edited by a moderator:

gpgekko

Nevermind me, I'll just cast shadows on your walls
Veteran
Joined
Jan 23, 2013
Messages
114
Reaction score
7
First Language
Dutch
Primarily Uses
This looks pretty handy. I'm wondering though, in the screenshot you set the color of the disabled choice, leading me to believe the script call to disable a choice doesn't change the color of a choice (graying it out), only blocks the selecting (or activating) of this choice. Is this true?
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Yes, a choice's color will only be set if it is enabled.


Otherwise it will default to the disabled color.
 

Ouistoto

Villager
Member
Joined
Feb 20, 2013
Messages
22
Reaction score
0
First Language
French
Primarily Uses
Very great script ! Thank you very much !!! :thumbsup-left:
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Script updated with a new choice option

Method: text_choiceEffect: Sets the text of the choice to the custom text.Usage: Takes a string that will replace whatever you place in the choice editor. This allows you to exceed the 50-char limit.The built-in choice editor only allows you to type in 50-characters.This option allows you to specify longer strings using a script call, if you need the space.
 

MyLordRobinson

Emperor of Carnelia
Veteran
Joined
May 13, 2012
Messages
881
Reaction score
84
First Language
English
Primarily Uses
Could you give me examples of how this can be used?
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
I usually write scripts without any particular use in mind.


I don't know when people might want to hide a choice until a condition has been satisfied (for example, if a switch is ON/OFF or if an actor is in the party).


It's one of those things where when you'll need it you'll realize why it's useful.
 

Hyomoto

Staring Contest
Veteran
Joined
Oct 4, 2012
Messages
47
Reaction score
0
First Language
English
Clever, and certainly a useful idea.  It may benefit greatly in situations where you'd need multiple 'if' branches duplicated to achieve a similar effect.
 
Joined
Apr 21, 2013
Messages
515
Reaction score
141
First Language
English
Primarily Uses
N/A
Hey Tsuki, there's a bug with  color_choice(num, color_id)   if used with your large choices script:



Whenever you have a window larger than 4 choices, the last choice isn't colored. If I had made 8 choices together, the 1-7 choices would be colored whereas the 8th would be default white.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
I have fixed the issue, thanks for the report.


The problem occurred for every set of choices even without large choices: the last choice would never be colored because I was grabbing data that never existed.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
I've updated the script to support formula variables.

Any option that uses formulas can use them, such as hide_choice and disable_choice.

Code:
p - game partyt - game troops - game switchesv - game variables
All condition formulas are evaluated within the context of the game interpreter.
 
Last edited by a moderator:

bobisme

Veteran
Veteran
Joined
Apr 25, 2013
Messages
112
Reaction score
4
First Language
english
Primarily Uses
great script! i just downed large choices and was hoping for something that allowed me to cut back on copious conditional branches >.<
 

AlliedG

Veteran
Veteran
Joined
Jan 17, 2014
Messages
66
Reaction score
33
First Language
English
Primarily Uses
I seem to get a bug with the large choices script when I try


hide_choice(5, "s[1]==true")


The 5th choice does not disable? (works on first 4 however)


color_choice(num, color_id) does work however.
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Is switch 1 ON?


Does this occur in a new project?
 

AlliedG

Veteran
Veteran
Joined
Jan 17, 2014
Messages
66
Reaction score
33
First Language
English
Primarily Uses
user error
 
Last edited by a moderator:

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,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top