Apply state to enemy when enemy is weak to an element of an attack?

I want it so that if an enemy is hit with an attack of a certain element, a state is applied. Like if a wooden monster gets hit with a fire spell, it applies burning, but only to that wooden monster and not anybody else.
Victor's Action States will do exactly what you ask.

It will add or remove states based on what you hit the opponent with.
Victor's Action States will do exactly what you ask.

It will add or remove states based on what you hit the opponent with.
How do I add these commands to enemies, exactly?
How do I add these commands to enemies, exactly?

You have to put it into their notetag section.

EX.

<element state: x, type id>

X is the triggering element. Type is if it adds or removes the state. ID is the state ID that is added.

It would look like this in practice -

<element state: 5, add 10>

Enemy will gain state 10 if an attack with element 5 hits them.
You have to put it into their notetag section.

EX.

<element state: x, type id>

X is the triggering element. Type is if it adds or removes the state. ID is the state ID that is added.

It would look like this in practice -

<element state: 5, add 10>

Enemy will gain state 10 if an attack with element 5 hits them.
1670241028902.png

What did I do wrong...?
Please show a screenshot of the skill in your database. Don't crop anything.
Please show a screenshot of the skill in your database. Don't crop anything.
1670250750715.png

1670250769868.png

1670250842333.png

1670250897500.png


Seems pretty straight forward.
Even though that's how they're displayed in your database, you should never include leading zeros on IDs. That turns them into octal values, which is not what you want.

Change it to 4 and 3, just like the examples given to you in the plugin documentation.
Even though that's how they're displayed in your database, you should never include leading zeros on IDs. That turns them into octal values, which is not what you want.

Change it to 4 and 3, just like the examples given to you in the plugin documentation.
1670357702868.png


1670357802130.png


Same error pops up. Something else seems to be the problem.
Have you tried turning off all other plugins in case it's conflicting with something? It seems like that function in the Basic Module is somehow receiving the wrong data type.
Have you tried turning off all other plugins in case it's conflicting with something? It seems like that function in the Basic Module is somehow receiving the wrong data type.
1670401747810.png

1670401775761.png


The only thing I could even remotely assume was causing the problem was the Yanfly Battle Engine Core. I turned it off and saved the game but it only gave me a slightly different error message.
Two questions.

#1: Where did you get your copy of MV? From Steam or the official website?

#2: Saves from an older version of the game that don't have a newly added script will often crash the game for some reason. Are you reloading a save from before you installed Action States?
Two questions.

#1: Where did you get your copy of MV? From Steam or the official website?

#2: Saves from an older version of the game that don't have a newly added script will often crash the game for some reason. Are you reloading a save from before you installed Action States?
1. Steam.
2. I created the file for this game about a month ago. I doubt it's outdated. No, I'm using a Battle Test. But doing one in the overworld doesn't change the error message.
No, I'm using a Battle Test. But doing one in the overworld doesn't change the error message.
This didn't actually address the question posed to you. Did you or did you not load a save before testing this way?

Original thread: https://forums.rpgmakerweb.com/threads/apply-state-to-enemy-when-enemy-is-weak-to-an-element-of-an-attack.153102/