- Joined
- Apr 12, 2012
- Messages
- 2,659
- Reaction score
- 2,001
- First Language
- English
- Primarily Uses
- RMMV
Description of the Feature:
Code for Implementation:
Not so much how it would be coded in core, but here's how I did a dynamic choice list in my Winterruption game:
The basic idea is that choices would be filtered based on switch conditions, so you could have options show up or disappear depending on what the player has done.
Mockups:
I lack the ability to do this as present, I'll try to edit a mockup in later.
Why is this feature good?
This feature is great because of the following:
Possible issues with this feature?
Issues that might arise from this feature:
- Have checkboxes for each option in a Show Choice command to show/hide them, possibly with a selection for a switch to tie their state to
Code for Implementation:
Not so much how it would be coded in core, but here's how I did a dynamic choice list in my Winterruption game:
Code:
$gameMessage.setChoiceBackground(0);
$gameMessage.setChoicePositionType(2);
$gameMessage.setChoiceCallback(function(n) {
$gameVariables.setValue(15, choices[n]);
}.bind(this));
choices = ['Any idea where you argued?', 'Do you know what was argued about?'];
if (($gameSwitches.value(18) || $gameSwitches.value(19) || $gameSwitches.value(20) || $gameSwitches.value(22)) && ($gameSwitches.value(23) || $gameSwitches.value(25) || $gameSwitches.value(27) || $gameSwitches.value(28)) && ($gameSwitches.value(26) || $gameSwitches.value(29) || $gameSwitches.value(30) || $gameSwitches.value(31))) {
choices.push('I think I know what happened...');
}
if (!$gameMessage.isBusy()) {
$gameMessage.setChoices(choices, 0, -2);
this.setWaitMode('message');
}
The basic idea is that choices would be filtered based on switch conditions, so you could have options show up or disappear depending on what the player has done.
Mockups:
I lack the ability to do this as present, I'll try to edit a mockup in later.
Why is this feature good?
This feature is great because of the following:
- Puppies
- Instant Gratification
- More dynamic games, especially visual novels, puzzlers and mystery
Possible issues with this feature?
Issues that might arise from this feature:
- Additional game bugs related to accidentally showing/hiding a choice that shouldn't have been shown/hidden
- Loss of hair
- That's about it