Making a large selection list?

I'm trying to make a game in which the player can "randomly" generate a dungeon by grouping 3 key words from a large list of beginning, middle and end words.

Each list is would start out with roughly 10-12 words and grow as the player progresses through the story, eventually ending in them having roughly 30-40 words per category.

My thinking is that by selecting words, it would set different variable values to specific amounts and based on some simple math between the 3, the resulting value would put the player into a specific area I've somewhat pre-generated, as well as adjust certain things like enemy location, puzzles, traps, etc.
Code:
word 1 = CASTING [Value: 3]
word 2 = PURE [Value: 7]
word 3 = MAGE [Value: -2]

combo value = 3+7+(-2) = 10

Output (Range 1-10)
- Lvl 30 Monsters
- Lvl 40 Dungeon
- Fire Element Area
- Fire Element Dungeon
etc etc etc

My issue atm is that I'm not sure how to create such a long list without nesting the words within CHOICE menus, which has a limit of 6 choices.

I thought about using himework's "LARGER CHOICES" plugin, but I'm not sure if that would allow me to add more codewords later on.

Does anyone know of a way I could do this? Any help would be SUPER appreciated.
it largely depends on how you will generate the specific dungeon.

if you make a manual value checkup you basically have no other chance.
if you manage a mathematical sequence other ways are possible, but you would have to encode the numbers into the letters and no longer have any human words as a base.

there are a few alternatives to both, but it all depends on how those numbers are changed into the dungeon structure with mathematical or other methods. And you didn't give any details on that.
The cap at 6 choices is really just a limitation of editor.
You can do a manual script call, using an array of elements as the choices
choices = ["Some", "kind", "of", "array"]
The default window starts scrolling after 8 items. I'm pretty sure you can fit 40+ choices. I'm not sure what the limit might be.

You can also make an object {key: value, key: value}, returning an array of the object's key names for the choices. Then setting the value of that key to a game variable once the selection has been made. (In my example it sets the value to variable 17, which you can then work with elsewhere)
You'll probably start out with a preset of initial words.
I recommend using game switches as the conditions for additional words.
*See example*
If Switch #12 "Someword" is on/true, set Choice.Someword = value. Which is effectively adding {Someword: value} to the object choice list.

The only downside to this is that event script blocks have limited vertical space to code in, But horizontally the lines can be infinitely long. So you'll just have to keep all the if statements on one or two lines. Can be a pain to go through to make changes..

[img]https://i.imgur.com/6mvlNfw.png[/img]

JavaScript:
choices = {"One":1, "Two":2}
if ($gameSwitches._data[12]){ choices.Three = 3 }; if ($gameSwitches._data[12]){ choices.Four = 4 };
$gameMessage.setChoices(Object.keys(choices),0);
$gameMessage.setChoicePositionType(1);
$gameMessage.setChoiceCallback(function(responseIndex) {
$gameVariables.setValue(17, Object.values(choices)[responseIndex])
});

Edit:
Alternatively @FAWKS , you could just obtain words as Items (Type: Hidden a or Hidden b). You can pull up an "Item select" window for these categories specifically. Which stores the selected Item's ID to a variable. The Item select window is basically a show choice / sub menu window with 2 columns instead of 1.
The cap at 6 choices is really just a limitation of editor.
You can do a manual script call, using an array of elements as the choices
choices = ["Some", "kind", "of", "array"]
The default window starts scrolling after 8 items. I'm pretty sure you can fit 40+ choices. I'm not sure what the limit might be.

You can also make an object {key: value, key: value}, returning an array of the object's key names for the choices. Then setting the value of that key to a game variable once the selection has been made. (In my example it sets the value to variable 17, which you can then work with elsewhere)
You'll probably start out with a preset of initial words.
I recommend using game switches as the conditions for additional words.
*See example*
If Switch #12 "Someword" is on/true, set Choice.Someword = value. Which is effectively adding {Someword: value} to the object choice list.

The only downside to this is that event script blocks have limited vertical space to code in, But horizontally the lines can be infinitely long. So you'll just have to keep all the if statements on one or two lines. Can be a pain to go through to make changes..

6mvlNfw.png


JavaScript:
choices = {"One":1, "Two":2}
if ($gameSwitches._data[12]){ choices.Three = 3 }; if ($gameSwitches._data[12]){ choices.Four = 4 };
$gameMessage.setChoices(Object.keys(choices),0);
$gameMessage.setChoicePositionType(1);
$gameMessage.setChoiceCallback(function(responseIndex) {
$gameVariables.setValue(17, Object.values(choices)[responseIndex])
});

Edit:
Alternatively @FAWKS , you could just obtain words as Items (Type: Hidden a or Hidden b). You can pull up an "Item select" window for these categories specifically. Which stores the selected Item's ID to a variable. The Item select window is basically a show choice / sub menu window with 2 columns instead of 1.
Thank you so much! I actually ended up using the hidden item method. It works well enough, though I wish there was a way to add 1 or 2 more categories.

Thank you so much for the help! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/making-a-large-selection-list.145883/