How to Obtain the States from a Battler?

SumRndmDde

Follower of RNGesus
Veteran
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?
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
$gameActors.actor(1)._states returns an array of actor 1's states
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top