Last Updated: 03 February 2012 (Version 1.0)
Download Link: http://pastebin.com/raw.php?i=ykx2sVEa
This script allows you to exceed the four choices limit, this script sets a variable to equal the choice the player makes.
[...] Fomar gives us a nice script allowing users to have more than four choices for message branches. [...]
[...] Info Window uses events along with the aforementioned Yanfly scripts along with Fomar0153′s More Choices script to have a series of sub-menus to display area info windows (or just about anything else if [...]
when you set the cancel option to branch i found 2 problems.
1. if you cancel the variable is set to 0 by default so option 1 always activates. fixed this by setting the variable to something unused.
2. if you select option 5 the cancel branch gets activated. didnt find a way to fix that yet.
Can’t you just disallow cancel and add an option called cancel to the list?
that sure would work, but it always fells strange to have to select cancel in a game instead of just pressing a cancel button.^^ so i thougt maybe there was a way to change the script so cancel gets its own variable value. but if thats not possible ill just do what you suggested.
Well the other option is to put a jump to label command in the cancel branch and have the label below the other conditional branches.
Is there a way you can edit this so that only choices will show after a variable is equaled.
if Var TimeTravel = 1
only show 100 AD
if Var TimeTravel = 2
show 100 AD, 5,000 BC
and so on
There are examples like that in the thread:
Sorry for late reply. And sorry for not seeing the example.I think I get it now. Thanks for the help.
I realize it may be hard to do, but could you make a function that we can use to set choices instead of editing script every time we want to make new set of choices?
It would be like set_choices(“choice1″,”choice2″,”choice3″,…)
and then we would call Show Choice with command “choices”, e.g.
Show Choice: choices.
Full event script would be like
Call Script: set_choices(“choice1″,”choice2″,”choice3″)
Show Choice: choices
and then usual conditional branch stuff. How about it? Also if I figure out how to do such thing, can I edit your script and send you edited version via e-mail of something?
I’ve figured it out. Now waiting for permission to post.
It’s fine to post it as long as I’m credited for the original script you edited and of course feel free to add your name to your version, you might want to link to it on something like pastebin so that the spacing doesn’t get messed up.
Here you are:
Setting choices is a bit different than in my original post. It is
$morechoices = ["choice1","choice2","choice3",...]
Also some problems that may happen when using my method, a.k.a FAQ
Q: I get nil:NilClass-related error or I’m being shown choices from previous setup.
A: You didn’t call $morechoices = ["choice1","choice2","choice3",...] before calling show choice: choices.
Q: Some of commands (usually last) are cut off.
A: This is VXA’s fault not mine. Call script box breaks lines, so you may have something like this:
$morechoices = ["Box", "Crate","Bag","Back
Just fix it by pressing enter before last item an any items that gets wrapped up so you have something like:
$morechoices = ["Box", "Crate","Bag",
How about posting my edit of your script in main post?