So simply put I have things set up as follows
@params: VariableToBeReferenced
@desc
@default: 5
I am using the following... though I've been uncertain about it.
var params=PluginManager.parameters('MyPlugin')
var VarNumber = Number(params['VariableToBeReferenced'] || 5);
var VarValue = return $gameVariables.value(VarNumber);
VarValue is used later as part of
return this.allMembers().slice(4, VarValue)
};
Placed simply I am making a window that shows only reserved party members up to a specific point in this example. Everything worked fine until I added VarValue into the situation. I've tried a few variations but figure I've just overlooked something and been fundamentally wrong in how I've applied it from the beginning.
If I replaced VarValue with VarNumber it will give me the actors in index 4-5 by default and nothing more so in concept it works fine. The problem is how I'm assigning the value to the game variable. Help this noob out please.
@params: VariableToBeReferenced
@desc
@default: 5
I am using the following... though I've been uncertain about it.
var params=PluginManager.parameters('MyPlugin')
var VarNumber = Number(params['VariableToBeReferenced'] || 5);
var VarValue = return $gameVariables.value(VarNumber);
VarValue is used later as part of
return this.allMembers().slice(4, VarValue)
};
Placed simply I am making a window that shows only reserved party members up to a specific point in this example. Everything worked fine until I added VarValue into the situation. I've tried a few variations but figure I've just overlooked something and been fundamentally wrong in how I've applied it from the beginning.
If I replaced VarValue with VarNumber it will give me the actors in index 4-5 by default and nothing more so in concept it works fine. The problem is how I'm assigning the value to the game variable. Help this noob out please.