- Joined
- Mar 31, 2013
- Messages
- 259
- Reaction score
- 117
- First Language
- English
- Primarily Uses
- RMMZ
I know this should seem easy for the life of me, but I wanted to be sure I'm doing this correctly.
Quite simply I am writing a plugin with a parameter (Value X). If this value is not 0 or undefined, then we take Actor1's Attack Power * ValueX = Weight Limit. (kind of similar to how D&D 5e takes Strength Score * 15 = the basic amount of weight you can carry).
So what I'm asking is - within a Game_Party class, how would one go about getting actor 1's ATK value?
Like would this work (pseudo code obviously, not full thing):
var MyVar = MyVar || {};
MyVar.params = PluginManager['myplugin'];
MyVar.value = Number(MyVar.params['Value']);
var actor = $dataActors[1]; // getting actor 1 only
var iwsLimit = actor.atk * MyVar.value;
}
Quite simply I am writing a plugin with a parameter (Value X). If this value is not 0 or undefined, then we take Actor1's Attack Power * ValueX = Weight Limit. (kind of similar to how D&D 5e takes Strength Score * 15 = the basic amount of weight you can carry).
So what I'm asking is - within a Game_Party class, how would one go about getting actor 1's ATK value?
Like would this work (pseudo code obviously, not full thing):
var MyVar = MyVar || {};
MyVar.params = PluginManager['myplugin'];
MyVar.value = Number(MyVar.params['Value']);
var actor = $dataActors[1]; // getting actor 1 only
var iwsLimit = actor.atk * MyVar.value;
}
Last edited:

