Hello all!
It's rather simple, but I can't seem to find the correct code to use to make it so:
- it's a passive state
- whenever the user recieves a Defense Buff, he gets state x
how can I accomplish that?
Thank you ^^
It sounds like what you'd want to do is set the passive state's condition to a custom eval to check when the user has a defense buff.
If defense buffs are a different kind of status effects, you'd want to make a state category for them, and have the passive check user.isStateCategoryAffected("yourCategory")
If you're using the normal MV buff engine, it'd be (user._buffs[paramId] > 0), where paramId is the number for the stat- I forget which number is defense, but you can count them drop from the top, with max HP as 0, max MP as 1, etc. It should be either 3 or 4, probably.
Thank you for the help!
I'm still looking to add my state at the time that the buff is being applied
Your method would require me to check if the user has the buff, but not react to it being recieved ^^;
But thank you for reminding me of the correct way to reference it