[ACE] - Yanfly - Lunatic States - Adding A New State After One Ends

I'm trying to make it so that when one state ends another one starts, but I'm not having much luck so far. I'd really appreciate any help.
 
The example I'm working with is when someone gets hit with a fire skill, they may be set on fire. After the fire is put out or fades away they're left with a burned state. So "Burning" leads to being "Burned."
 
The problem is that when "Burning" ends "Burned" does not appear on the character.
 
I've already seen this topic and tried a few things: http://forums.rpgmakerweb.com/index.php?/topic/12276-ace-yanfly-lunatic-status-freeze-shatter-effect/
 
And here's the script I'm using: http://dl.dropboxusercontent.com/u/49701990/YEA/Lunatic_States.rb
 
This is my addition to the actual script,

when /BURNING/i    self.add_state(2) # My "Burned" state is in the second state slot.    filename = "Break" # I didn't understand what this was, so I tried it with and without this line.And this is what I put in the note section of the "Burning" state.

<leave effect: burning>Can anyone tell me what I'm doing wrong? I feel like there's something simple that I'm missing.
There are other scripts out here that does that... you might just wanna use it... I think it was Tsukihime's progressive states...

Else, you could put debug messages (turn on the console) like put

p "run" before the self.add_state(2) just to check if it actually runs

so it would look like

when /BURNING/i    p "run"    self.add_state(2) # My "Burned" state is in the second state slot.    filename = "Break" # I didn't understand what this was, so I tried it with and without this line.PS: the filename was for a sound effect that will be played upon triggering the burning effect

Also, make sure you're testing this out using a new game instead of a loaded game
I got it working now! I'm not sure why but after I added p "run" and took out the filename = break it started working perfectly. Thank you very much for your help!

Original thread: https://forums.rpgmakerweb.com/threads/ace-yanfly-lunatic-states-adding-a-new-state-after-one-ends.21310/