I have a question as to how to implement the following feature: when a creature is downed, I want subsequent attacks on the same turn to attempt to target the same creature and fail. I do not know where to begin with this, though I have access to the VisuStella plugins, and I assume that this can be set up using common events.
How to make autotarget attacks, etc. miss?
RPG Maker MZ SupportI'm going to offer a suggestion:
Is that actually what you want, or is this adjustment of your wording correct?
"when a creature is downed, I want subsequent attacks that were targeting that creature to fail."
Either way, I don't see how common events will be able to do it, because you're talking about manipulation at the code level - either to change the target of attacks, or to prevent the change and create an entirely new battle result.
This is saying you want to make all following attacks target the downed creature.
Is that actually what you want, or is this adjustment of your wording correct?
"when a creature is downed, I want subsequent attacks that were targeting that creature to fail."
Either way, I don't see how common events will be able to do it, because you're talking about manipulation at the code level - either to change the target of attacks, or to prevent the change and create an entirely new battle result.
I'd assume action sequencing. Just put a conditional branch if the enemy isStateAffected and execute a difference sequence wether it is or not, where when it is, the sequence could just not trigger the action effect, therefore dealing no damage.
My mistake, your rewording is accurate to my intentions.
I’m a complete beginner at this, but I think I understand your answer, thank you, I’ll be sure to try a few things out.
Let us know if you need any help getting it worked out.
I'm not sure you'll be able to pull it off with action sequences as @SGHarlekin suggests because by the time the skill goes off for an action sequence to do anything, it's already been redirected to a living target by the engine's code.
What state is it anyway? "Downed"? Are we talking about actually dead here? If that's the case yes, the skills would already be targetted towards a different target either way and it would not work. I was expecting like a stun state. "Downed" as in knocked off their feet perhaps lol.
What you could potentially do is having a fake death state, that just stops the enemy from moving for 1 turn or having something like a "corpse" enemy transformation that has no skills, so the skills wouldn't be automatically redirected by the engine, then after 1 turn automatically apply the real death state. That's assuming there is a thing in MZ equivalent to yanfly buffs and states core. Can't think of any other way on the top of my head.
What you could potentially do is having a fake death state, that just stops the enemy from moving for 1 turn or having something like a "corpse" enemy transformation that has no skills, so the skills wouldn't be automatically redirected by the engine, then after 1 turn automatically apply the real death state. That's assuming there is a thing in MZ equivalent to yanfly buffs and states core. Can't think of any other way on the top of my head.
That's a valid question - I interpreted "downed" as "defeated"/"knocked out"/"killed", but that's my assumption. @bookco needs to clarify.
The alternative would be to alter the code in the engine that chooses a different target if a battler's turn comes up and their selected target is gone.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-autotarget-attacks-etc-miss.157954/