Determining the users state from within a plugin

Random Panda

Veteran
Veteran
Joined
May 3, 2016
Messages
91
Reaction score
14
First Language
English
Primarily Uses
RMMV
Hi all,

I am mostly a beginner at writing code but I can usually fudge my way through simple things. I'm hoping some of you here can help with what I am trying to do.

From within a plugin I would like to have a part that basically does this:

if user has state (x)
do A
else
do B

The problem i am having is I don't know how you would check the users state.

I know in scripts within the game engine you can do things like "$gameActors.actor(1).isStateAffected(7)" but that only gets Actor 1's status. But I need to know how to check if the character using the skill has the state. Basically what I need is the equivalent of this:

$gameActors.actor( The current actor currently doing a skill's ID ).isStateAffected(7)

Any help would be greatly appreciated. Even if its a more complicated process for determining the Actor that is currently doing a skill in battle, the slightest bit of insight would go a long way.
 
Last edited:

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

Latest Threads

Latest Posts

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,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top