MV Yanfly "Custom Leave Effect" Problem

I'm using the Yanfly Buffs And States Core to create a state that applies another state when it runs out of turns, it's a poison effect that becomes a stronger poison effect.
The problem is, it displays both the message of the new state, and the message when the old state is removed one after another.

So it'll say:
"<actor> is inflicted with toxic!"
then
"<actor> is cured of the poison!"

Which is kinda confusing. Is there any way to make it not show the second message in this specific scenario? Or will I simply have makes it so the first state doesn't have a message when it gets removed? I'd preferably like it to still show that message if the state is cured by normal means.
This happens with both the "Leave" and "Remove" effect, btw.
Welcome!

So correct me if I misunderstand, but it doesn't seem that your question has anything to do with the Buffs & States Core. You're asking if there's a way to not show the removed message under certain circumstances - the answer to that is no.

However, you could try to use the Buffs & States Core to jerry-rig it in reverse. 😉

Delete the remove message from your database. Give the state a notetag:
Code:
<Custom Remove Effect>
if (!user._stateTurns[stateId])
    SceneManager._scene._logWindow.addText(user.name() + " is cured of the poison!")
</Custom Remove Effect>

That should display the message in the battle log only when the state expires.
Welcome!

So correct me if I misunderstand, but it doesn't seem that your question has anything to do with the Buffs & States Core. You're asking if there's a way to not show the removed message under certain circumstances - the answer to that is no.

However, you could try to use the Buffs & States Core to jerry-rig it in reverse. 😉

Delete the remove message from your database. Give the state a notetag:
Code:
<Custom Remove Effect>
if (!user._stateTurns[stateId])
    SceneManager._scene._logWindow.addText(user.name() + " is cured of the poison!")
</Custom Remove Effect>

That should display the message in the battle log only when the state expires.

I realize that I might have worded my problem a bit confusingly. Basically what I wanted is for the removal message NOT to show up when the state expired, because when the state expires it doesn't "cure" the poison, it makes it stronger.
I only wanted it to show up if you were to cure the state with an item/skill.

However, you did bring up a great point in the fact that I can probably make the cure item/skill display a message that says "<actor> is cured!" instead and leave the remove message empty.
I was just over thinking things I'm pretty sure, thank you very much!
You can still do what ATT_Turan said, but use addText("") and nothing else,
as it will be an empty string.
I only wanted it to show up if you were to cure the state with an item/skill.
Then change the condition to read:
Code:
if (user._stateTurns[stateId])

I haven't tried what @ShadowDragon suggests, it might work, but my fear would that it would cause a blank battle log line to show up at the top of the screen.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-custom-leave-effect-problem.157010/