How to apply one state after another ends with Yanfly's Buffs & States Core

I was wondering how I would apply one state after another ends with the Yanfly's Buffs and States Core: http://www.yanfly.moe/wiki/Buffs_&_States_Core_(YEP)

I tried to find the answer in the previous thread about it but, I couldn't really understand that one: https://forums.rpgmakerweb.com/index.php?threads/adding-state-after-other-state-removed.75179/

Here's an example character A gets "Buff" state and once the state wears off he gets the "Fatigued" state.
Hi
<Custom Leave Effect>
user.addState(next state ID)
</custom leave Effect>

place this notetag in notebox of the first state.
Hi
<Custom Leave Effect>
user.addState(next state ID)
</custom leave Effect>

place this notetag in notebox of the first state.

Thanks, I got it to work.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-apply-one-state-after-another-ends-with-yanflys-buffs-states-core.115973/