Tutorial-Blog VisuStella MZ Action Sequence Series: Creating HP/MP Skill Conditions

Note: this was originally supposed to be the second, and not third tutorial in this series, but I'm a dumb dumb and posted them in the wrong order.
The article isn't showing up on the normal blog page, when you access it from the RPGMakerWeb homepage. This might get buried in the forums if it isn't fixed.
The article isn't showing up on the normal blog page, when you access it from the RPGMakerWeb homepage. This might get buried in the forums if it isn't fixed.
Hmmm. Ok I see what happened give me a second :B

Fixed! Thanks for the heads up.
These are super informative. I really can't wait to see some more games with totally insane combat systems due to this.
This is indeed super useful, thanks for the information.

May I ask how can you use an action sequence to account for enemy states?
Like, for example, a skill that normally strikes once, but it will strike twice when attacking a poisoned enemy.
Would really appreciate your kind help.
This is indeed super useful, thanks for the information.

May I ask how can you use an action sequence to account for enemy states?
Like, for example, a skill that normally strikes once, but it will strike twice when attacking a poisoned enemy.
Would really appreciate your kind help.
I think you could use a conditional branch with a script. Only thing is I don't quite remember how to reference the target. I know you can do user.isStateAffected(StateID), so maybe "target" instead of "user?" (Could someone please fill in my blank here?) But anyway, if the condition is met, use the multipliers like in the tutorial.
You can either set a variable to "game data -> last enemy target index" or use $gameTemp.lastActionData(3)
May I ask how can you use an action sequence to account for enemy states?
Like, for example, a skill that normally strikes once, but it will strike twice when attacking a poisoned enemy.
I'll have to try out the above methods. There is one I've used a bunch before.

BattleManager._target.isStateAffected(StateID) should work. Typically if you want to refer to the user, target, or targets, you can use the following replacement:

user = BattleManager._subject
target = BattleManager._target
target = BattleManager._targets

Also remember if you are referring to passive states, you need to use a different script call: http://www.yanfly.moe/wiki/Skills_and_States_Core_VisuStella_MZ#Passive_State_Clarification
Wow, thanks guys! So target.isStateAffected() right? I'll test it out later.
And yeah, thanks for the reminder for passive states.

Original thread: https://forums.rpgmakerweb.com/threads/visustella-mz-action-sequence-series-creating-hp-mp-skill-conditions.137089/