- Joined
- Jul 30, 2013
- Messages
- 225
- Reaction score
- 423
- First Language
- English
- Primarily Uses
- RMMV
Let's say I have a Battler object called "myBattler".
How would I be able to obtain one or all of the states that have afflicted this Battler.
I found the following:
Game_BattlerBase.prototype.states = function() { return this._states.map(function(id) { return $dataStates[id]; });};but I can't seem to figure out how to use it to find the Battler's states.
I've tried "myBattler.states()" and "myBattler.states(3)" to no avail.
How do I do it?
Also, once I've found a State's ID, how can I use it to create a State object itself?
How would I be able to obtain one or all of the states that have afflicted this Battler.
I found the following:
Game_BattlerBase.prototype.states = function() { return this._states.map(function(id) { return $dataStates[id]; });};but I can't seem to figure out how to use it to find the Battler's states.
I've tried "myBattler.states()" and "myBattler.states(3)" to no avail.
How do I do it?
Also, once I've found a State's ID, how can I use it to create a State object itself?
