- Joined
- Jun 17, 2018
- Messages
- 68
- Reaction score
- 26
- First Language
- Spanish
- Primarily Uses
- RMMV
Hello, first of all, this is my first time here, so please bear with me if I ask very silly things 
So far, Googling around helped me with many doubts I had while learning RPG Maker MV, however I stumbled upon this one I can't seem to find anything about. I am trying to create a choice menu with options which vary depending on switches or variables.
I found this thread which has given me a great start, but I am not sure if it is explained there and I am too dumb to understand, or if I am asking for something completely different to what is explained in there.
Before you ask, no, I am not a programmer, so I'm sure it is something obvious that I am not seeing, or maybe improper syntax?
What I am trying is, check if a specific switch is enabled, and if it is, then add the option to a list which will be called later on the choices function, but I'm running out of ideas.
So far, Googling around helped me with many doubts I had while learning RPG Maker MV, however I stumbled upon this one I can't seem to find anything about. I am trying to create a choice menu with options which vary depending on switches or variables.
I found this thread which has given me a great start, but I am not sure if it is explained there and I am too dumb to understand, or if I am asking for something completely different to what is explained in there.
var choices;
if($gameSwitches.value(0)) choices+=['Switch 1'];
if($gameSwitches.value(1)) choices+=['Switch 2'];
if($gameSwitches.value(2)) choices+=['Switch 3'];
$gameMessage.setChoices(choices, 0, -1);
$gameMessage.setChoiceCallback(function(responseIndex) {$gameVariables.setValue(100, (responseIndex+1));} );
Before you ask, no, I am not a programmer, so I'm sure it is something obvious that I am not seeing, or maybe improper syntax?
What I am trying is, check if a specific switch is enabled, and if it is, then add the option to a list which will be called later on the choices function, but I'm running out of ideas.