VXAce Problem with gaining access to Burn status effect after certain event

So, in my game, fire skills do not automatically have the chance to inflict burn. However, there is a character that teaches the protagonist and by proxy the teammates how to inflict burn. My initial idea was to just use a common event that would check if a switch was on, but I soon realized common events can’t apply state rates so it’d automatically be 100% guaranteed. Not only that, but enemies would have access to it as well. My next idea was to just duplicate the skill and add the burn state to it. Then when the event happens, the team members switch to the new but then I realized there would be way too many things to replace singularly, and it would be extremely inefficient and bloated to go about it that way. I’m not sure how to go about this in a way that is simple and efficient! To reiterate, I want fire skills to not have burn, but once a certain event happens, the chance of burn status effect gets added to those same fire skills that didn’t have them before. If someone could please help, I’d be very grateful!
I think the best way to do this would be to get this script: Hime Formula Effects
as well as this script:
Spoiler: Add state with rate
Ruby:
class Game_Battler

  alias hb_state_non_addable state_addable?
  def state_addable?(state_id)
    hb_state_non_addable(state_id) && !state?(state_id)
  end

  def add_state_w_rate(user, state_id, chance)
    chance *= state_rate(state_id)  if opposite?(user)
    chance *= luk_effect_rate(user) if opposite?(user)
    if rand < chance
      add_state(state_id)
      @result.success = true
    end
  end
end

Then in the notes section of your fire skills, put this:
Code:
<formula effect>
if s[switch id]
  b.add_state_w_rate(a, state_id, chance)
end
</formula effect>
Then you just need to replace the "switch id", "state id" and "chance" with the correct numbers.
That works perfectly! If I want 12% chance, I would put 0.12, right? Also, how do you make it so that it can't reapply itself over and over and prolong the status effect length? Thank you so much!
@splurgytypeb Just to clarify, you want the state to run out before you can reapply it, right?
And would you want it to happen for all states?

Edit: I updated the code in the spoiler above to prevent states from resetting the state length.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-gaining-access-to-burn-status-effect-after-certain-event.179999/