Element-Null Skills Help

Hey guys!

I'm currently using a character that has elemental-null types of attacks that cause the Thunder/Fire/Ice Force ect. skills on Self, and I was wanting to know how I would be able to run a common event or a parallel process in order to only have one of those "Null" skills active at a time?
You can do it either via CE or the formula bar...

CE:

Using the formula bar, save the actor ID to a variable so that you can refer to him in your common event...

On the common event, have a random number and conditional branch maybe that will determine which state to add

Then add state (if the other states are active, remove them)

Formula Bar

just do the randomization + add state and remove states in here...

Or you can also add a method on the game_battler class, and just call that method using the formula bar...
I was thinking of doing a common event, but I would I probably put "Conditional Branch: If "State6" is applied" then -> Remove State 1,2,3,4,5,etc. Then after that have it use the skill for State 6?
wait, what?

Here's what I understood from first post:

I have a skill

When I use it, my character can have a certain "Force" state applied

And only 1 of these states can be active

Is that right? If that's the case, then the CE would be

Set Variable: [001] = RandomNumber(x to y)

remove states here

Contional Branch: If Variable [001] == 1

  Add State (State 1)

Else

  Contional Branch: If Variable [001] == 2

     Add State (State 2)

And so on...

or use script calls to use the variable directly as the state pointer (assuming your states are numbered successively)
I was thinking with a static variable instead of a random one. If it were a roulette kind of skill that would work perfectly.
There's a script out there that can run common events before appling the damage formula, etc.

Find that, and use it to make a CE that takes ALL the involved states away.

After that, add whatever state the particular skill calls for.

If you want a random one, just do a little adding to your damage formula:

$game_variables(x) = rand(3) + 10; b.add_state($game_variables(x)); 0

(Might not need the 0)

What this does is make variable x equal a number from 0 - 2 +10.

So this would make it equal 10, 11, or 12

(As long as the states you want to use are in order, you can do this.)

Then it add the state with that number ID to the skill's target.

Give it a shot and see if that works for you.

But remember to look for that script I mentioned earlier.
I recall a topic that was like this that was addressed but it was a long time ago. I'm trying to event it in the database but nothing is working. 
May I ask why the insistance that it be evented?

I don't think there's anything wrong or too complicated with the solution I offered.

Original thread: https://forums.rpgmakerweb.com/threads/element-null-skills-help.16435/