Yanfly Tips & Tricks - Toxic (Pokémon) - RPG Maker MV - Enemy is not dissapearing

Are you using the same action sequence as I posted above? If yes, then I'm out of ideas...

And yes, I have 1.6.2 (screen bellow)
But the action sequence has nothing to do with this - it's on a completely different skill, right?
Yes, it's on 0001 Attack. But as I mentioned earlier, when I remove Attack skill from Bandits and they are using other skills (such as Wait or Fire ball where there is no movement towards actor) this bug disappears. That's why I'm focused on that concrete action sequence.
I believe that's a false connection - an action sequence doesn't do anything unless the skill is being executed and it's reading the commands. Just having an action sequence doesn't do anything.

But you can easily test that by copying your action sequence to your notepad and deleting it from the Attack skill.
out of curiously, you use
Code:
  var n = this._toxicCounter / 3;

what happens if you set it exactly as the code on the site
Code:
  var n = this._toxicCounter / 16;

does it do the same?

are the ghost killed by poison? or by regular attack or skill (without poison state)?
Are you using the same action sequence as I posted above? If yes, then I'm out of ideas...
yep.
1728395516874.png


im out of ideas then as well. if you make an entire new project from scratch, give it the above plugins, and copy over the notetags for the skill and state, does it still happen? Ive got nothing left after that if you do

found your curse. ive been testing with 2 enemies but i needed more to see it. theres 4 enemies here. 3 poisoned, 1 isnt, only one disappeared
1728396093841.png

add a
Code:
WAIT FOR OPACITY
at the end of your follow effect. it seems like them collapsing while theyre fading back in from the skill makes them not fully disappear from the collapse.
That's awesome, @Robro33 😍

So just as a note, when I said
But the action sequence has nothing to do with this - it's on a completely different skill, right?

That would've been a good time for @Sussuri to point out/remind "it's at the end of the Attack skill that they're dying from toxic and this bug is happening" 🤣

Glad you got it sorted!
@Robro33 Yes, that's it! Now they're disappearing! Thanks a ton! I just have to find a way how to return them "sooner" to their position and THEN wait for the opacity, since now they're stucked for a brief while in actors battlers after attack 😀

@ATT_Turan it was different for some reason with opacity, I tried my best to explain, sorry if that wasn't sufficient :/ 😀

@ShadowDragon it was the same, we even tried flat numbers. :LZYdizzy:
I just have to find a way how to return them "sooner" to their position and THEN wait for the opacity
Do it with action sequence commands, instead of waiting for the default finish action to do it for you.

Put a move user: home before the opacity.
@ATT_Turan Yep, it's working, thank you! 🙂 Just for addition - I add something more to follow section since the character returned home, but was facing wrong direction for a while. So I managed to turn him instantly to the correct direction.

Spoiler: follow action
</follow action>
Code:
<follow action>
zoom: 100%, 60
move user: home
wait for movement
move user: forward, 0, 1
opacity not focus: 100%, 30
wait for opacity
</follow action>

Thank you all for participation, problem is now solved, have a good day! 🙂
I suppose that works, but there are also specific commands to change facing in the documentation.
Didn't find them (maybe I'm too tired 😀 ) so I just improvised.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-tips-tricks-toxic-pokemon-rpg-maker-mv-enemy-is-not-dissapearing.172451/