Hello everyone,
I'm currently working on a feature for an armor in my game. This armor is designed to increase the wearer's luck whenever they are affected by any status condition, with the functionality powered by Yanfly's Buffs & States Core plugin.
When the character equipped with this armor receives any state from an enemy, their luck should increase.
Here is what I'm aiming to achieve:
The armor has a <Passive state> tag to a state with the following state
(yes, a state checking for states)
I am aware that this.hasStates() is not an actual function; it's just a placeholder for the right method to check if any state has been applied.
I'm not sure how to check if any state has been applied to the target. Can anyone guide me on how to achieve this?
Thank you~~1→!
I'm currently working on a feature for an armor in my game. This armor is designed to increase the wearer's luck whenever they are affected by any status condition, with the functionality powered by Yanfly's Buffs & States Core plugin.
When the character equipped with this armor receives any state from an enemy, their luck should increase.
Here is what I'm aiming to achieve:
The armor has a <Passive state> tag to a state with the following state
Code:
<Custom Respond Effect>
if (!user.isActor() // This checks that the status is being applied by an enemy, assuming enemies are not actors.
&& this.hasStates() // This function does not exist; it's an example.
) {
target.addbuff(7,4); // This is intended to increase luck.
}
</Custom Respond Effect>
(yes, a state checking for states)
I am aware that this.hasStates() is not an actual function; it's just a placeholder for the right method to check if any state has been applied.
I'm not sure how to check if any state has been applied to the target. Can anyone guide me on how to achieve this?
Thank you~~1→!
