hello, I would like a plugin that increases the number of variables and swiches, I use an event menu that consumes a lot of coordinate variables and there is no room for other systems in the game. something to increase beyond 5000.
MV More swiches and variables Rpg MV
JS Plugin RequestsYou should look for a Plugin Menu instead.
However, if you want to remove this restriction, you can try this:
Import this as Plugin:
To get a Switch, do this Script Call:
To set a Switch, do this Script Call:
Same for accessing variables, use
instead.
However, if you want to remove this restriction, you can try this:
Import this as Plugin:
Code:
Game_Switches.prototype.setValue = function(switchId, value) {
if (switchId > 0) {
this._data[switchId] = value;
this.onChange();
}
};
Game_Variables.prototype.setValue = function(variableId, value) {
if (variableId > 0) {
if (typeof value === 'number') {
value = Math.floor(value);
}
this._data[variableId] = value;
this.onChange();
}
};
To get a Switch, do this Script Call:
Code:
$gameSwitches.value(SWITCH_ID)
To set a Switch, do this Script Call:
Code:
$gameSwitches.setValue(SWITCH_ID, true / false)
Same for accessing variables, use
Code:
$gameVariables
maybe this could help
hope this help.
hope this help.
//=============================================================================
// Teste.js
//=============================================================================
/*:
* Teste
*/
Game_Switches.prototype.setValue = function(switchId, value) {
if (switchId > 0) {
this._data[switchId] = value;
this.onChange();
}
};
Game_Variables.prototype.setValue = function(variableId, value) {
if (variableId > 0) {
if (typeof value === 'number') {
value = Math.floor(value);
}
this._data[variableId] = value;
this.onChange();
}
};
$gameVariables.setValue(5001, 1)
remember that there is a script for rpg maker vx ace that broke the base date limit.
Original thread: https://forums.rpgmakerweb.com/threads/more-swiches-and-variables-rpg-mv.134586/