Determining the users state from within a plugin

Random Panda

Veteran
Veteran
Joined
May 3, 2016
Messages
59
Reaction score
6
First Language
English
Primarily Uses
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

Remember, you can enter up to THREE effects for a chance to win a copy of MZ! Only 11 submissions so far, the chances of winning is high! :D https://itch.io/jam/elfkisser
wake me up when Photoshop stop crashing everytime
Brioche with a crème patissiere filling is so tasty!
A group of Game creators and others who trying to revive the Feel of Multiplayer and TOWN/ROLEPLAY games

Forum statistics

Threads
99,387
Messages
964,702
Members
131,009
Latest member
gamerchix
Top