I need a way to check which of the choices, i.e, from 5 choices, contains a certain common event call, i. e., common event #100.
The common event is only executed in one of these choices
What i have already done is determining automatically how many choices are available and the name of those, storing these on variables.
The expected result could be in choice n1, n2, n3, n4, n5 ,etc, so, in order to determine what i want, this should be checked successively.
After that i just want to save the result into a variable and continue from that.
This must be done from the original function rpg_objects.js, im pretty sure this can be done here
Thanks!
The common event is only executed in one of these choices
What i have already done is determining automatically how many choices are available and the name of those, storing these on variables.
The expected result could be in choice n1, n2, n3, n4, n5 ,etc, so, in order to determine what i want, this should be checked successively.
After that i just want to save the result into a variable and continue from that.
This must be done from the original function rpg_objects.js, im pretty sure this can be done here
Code:
// When [**]
Game_Interpreter.prototype.command402 = function() {
if (this._branch[this._indent] !== this._params[0]) {
this.skipBranch();
}
return true;
};
Thanks!