MV Checking for a Status effect on an Actor ID

Basically what i want to try and do is check if Actor ID X has status effect Y and if it does trigger an effect

Just to make clear, no i cannot use a conditional branch checking if a certain actor has a status effect, I need to specifically do it with the Actor ID because of a plug-in i'm using.
Something like this, if I'm not mistaken?
JavaScript:
$gameActors.actor(x).isStateAffected(y)
Something like this, if I'm not mistaken?
JavaScript:
$gameActors.actor(x).isStateAffected(y)
This is exactly what i was looking for thanks!

Unfortunatly i've found out that what i thought was the solution to my problem wasn't, i can check if the Actor ID has the status effect, but i realised it doesn't help me since the Actor ID could belong to several different actors and could more than easily be the wrong actor, i'm pretty sure i'd need to check if every actor had the status effect.

Really appriciate the help though
i realised it doesn't help me since the Actor ID could belong to several different actors and could more than easily be the wrong actor
That doesn't really make any sense.

By definition, the actor ID belongs to one specific actor. It's possible for you to add multiple copies of an actor to your party, but RPG Maker isn't really intended to work correctly that way and you'll run into more bugs than this if that's what you're doing. If that is what's going on, then you'd have to differentiate between them using $gameParty.members()[index here] to reference their position in the party.

If you describe and show more clearly exactly what you're trying to achieve, we can surely help you.
That doesn't really make any sense.

By definition, the actor ID belongs to one specific actor. It's possible for you to add multiple copies of an actor to your party, but RPG Maker isn't really intended to work correctly that way and you'll run into more bugs than this if that's what you're doing. If that is what's going on, then you'd have to differentiate between them using $gameParty.members()[index here] to reference their position in the party.

If you describe and show more clearly exactly what you're trying to achieve, we can surely help you.
Ah sorry, yes I am using a plug-in that copies actors which gives the copies new ID's

I'm not sure how i'm supposed to explain what i've trying to achieve, sorry i'm not great with explaining things. I'm basically trying to make something along the lines of pokemon's abilities such as unnerve or intimidate, functionally at least, an effect that triggers at the start of a battle, by making an invisible status effect to check for.
It seems to me you should be able to use a couple of plugins to do this pretty simply - Yanfly's Auto Passive States can put a passive state on the actor if a given skill is known/equipped. Then you use a Buffs & States notetag in the passive state, e.g. Custom Battle Effect that runs at the start of battle.

None of that requires you to know/reference the user's ID in any way.

Aside from that, without knowing which plugin you're using or a detailed description of what you're trying to do, that's the best I can suggest.
It seems to me you should be able to use a couple of plugins to do this pretty simply - Yanfly's Auto Passive States can put a passive state on the actor if a given skill is known/equipped. Then you use a Buffs & States notetag in the passive state, e.g. Custom Battle Effect that runs at the start of battle.
I see! I've looked into Yanfly's Auto Passive States before but i didn't think i could use it to achieve that, i figured i had to use a script to get the status of an actor but i guess it wasn't necessary, my bad
I see! I've looked into Yanfly's Auto Passive States before but i didn't think i could use it to achieve that, i figured i had to use a script to get the status of an actor but i guess it wasn't necessary, my bad
I checked it out and Yanfly's Auto Passive States does not help me as you can only put it on the specific Actor and not have all states/abilities be able to be put on any actor.
I checked it out and Yanfly's Auto Passive States does not help me as you can only put it on the specific Actor and not have all states/abilities be able to be put on any actor.
You dont have to manually assign every passive to an actor. youre able to place passives on skills and equipment so that when its given to an actor by whatever means (level up, equipment, item use, etc.), the actor gains said passive. I never used plugins to copy actors but id assume that the skill list your template actor has, all the copies would also eventually get, yeah? a skill containing a passive would be learned by all the copies, right?
I checked it out and Yanfly's Auto Passive States does not help me as you can only put it on the specific Actor
As Robro pointed out, that's not correct. The Passive State notetag can be put on a variety of database objects:
1693227886853.png


So you can do exactly what I said in my previous post.
You dont have to manually assign every passive to an actor. youre able to place passives on skills and equipment so that when its given to an actor by whatever means (level up, equipment, item use, etc.), the actor gains said passive. I never used plugins to copy actors but id assume that the skill list your template actor has, all the copies would also eventually get, yeah? a skill containing a passive would be learned by all the copies, right?
As Robro pointed out, that's not correct. The Passive State notetag can be put on a variety of database objects:
1693227886853.png


So you can do exactly what I said in my previous post.
Sorry, that was a mistake on my part. I said the wrong thing, what i meant to say was that you can only either put it on the actor or you have to equip it in some way, i don't want the player to be able to or have to equip an ability, of course there are solutions to this such as making another equipment slot for the ability that's sealed so you can't remove it or equip a different one, but it feels a little off to do it that way.
I don't understand. Above, you said:
I'm basically trying to make something along the lines of pokemon's abilities such as unnerve or intimidate
so you would have this passive state granted by Unnerve/Intimidate.

Or you can put it on the Actor in the database and when it gets copied that will also get copied.

I dunno...you still haven't shared the copying plugin you're using nor, apparently, described explicitly what you want to happen.

Between that plugin's documentation and using passive states like this there has to be some way for you to get a reference to the actor without needing to know its ID ahead of time.

But that's all I can suggest. Good luck.
I'm guessing the OP is using SRD's plugins as he has a copy actor plugin as well as some Pokemon based ones. Just a guess though.
I dunno...you still haven't shared the copying plugin you're using nor, apparently, described explicitly what you want to happen.
I'm sorry i'm not great at describing things

I'm guessing the OP is using SRD's plugins as he has a copy actor plugin as well as some Pokemon based ones. Just a guess though.
Yes this is the plug-in i'm using, but i'm not using any pokemon based plugins

so you would have this passive state granted by Unnerve/Intimidate.
Yes this is right, but the problem comes with how do i grant that passive state to the actor.

I've managed to figure out how to do it with scripts, that doesn't need Actor ID's so i have found a solution to my problem, even if it might not be ideal

I'm sorry that i've been so bad at explaining or describing things, i'm just not good with words
Yes this is right, but the problem comes with how do i grant that passive state to the actor.
You've been told, like, three times. If you put the Passive State notetag on a skill, and the actor learns that skill (e.g. Unnerve), the actor will have the state.

I just don't understand what the point of confusion is.
You've been told, like, three times. If you put the Passive State notetag on a skill, and the actor learns that skill (e.g. Unnerve), the actor will have the state.
The reason why i didn't want to go with skills is because i can't hide a skill, i thought i said that with talking about equipment, but maybe it's not necessary to hide the ability, i just thought it would be for the better to hide it, my head is kinda jumbled today so maybe i'm going about this the complete wrong way and i should just give up on hiding it and do it using skills and auto passives, i'm sorry for taking up so much time due to my part

Yanfly's Skill Core allows you to hide skills in conjunction with what's been noted in earlier posts. So you could give the skills that have the passives attached and they'd sit invisible and not able to be seen or used if it helps!
Yanfly's Skill Core allows you to hide skills in conjunction with what's been noted in earlier posts. So you could give the skills that have the passives attached and they'd sit invisible and not able to be seen or used if it helps!
Oh...Well i mean if that's the case that changes it entirely, i could totally go about doing it that way then, i wasn't aware at all you could hide abilities with Yanfly Skill Core and i've just it several times.

Original thread: https://forums.rpgmakerweb.com/threads/checking-for-a-status-effect-on-an-actor-id.160628/