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

MightyWario_MV

Persona User
Veteran
Joined
Jun 18, 2016
Messages
56
Reaction score
7
First Language
English
Primarily Uses
RMMV
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.
 

RCXGaming

Champion of Brightmoon Tor
Veteran
Joined
Jan 4, 2019
Messages
738
Reaction score
1,636
First Language
English
Primarily Uses
RMVXA
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.
 

MightyWario_MV

Persona User
Veteran
Joined
Jun 18, 2016
Messages
56
Reaction score
7
First Language
English
Primarily Uses
RMMV
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...?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
6,947
Reaction score
4,789
First Language
English
Primarily Uses
RMMV
Please show a screenshot of the skill in your database. Don't crop anything.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
6,947
Reaction score
4,789
First Language
English
Primarily Uses
RMMV
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.
 

MightyWario_MV

Persona User
Veteran
Joined
Jun 18, 2016
Messages
56
Reaction score
7
First Language
English
Primarily Uses
RMMV
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.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
6,947
Reaction score
4,789
First Language
English
Primarily Uses
RMMV
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.
 

MightyWario_MV

Persona User
Veteran
Joined
Jun 18, 2016
Messages
56
Reaction score
7
First Language
English
Primarily Uses
RMMV
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.
 

RCXGaming

Champion of Brightmoon Tor
Veteran
Joined
Jan 4, 2019
Messages
738
Reaction score
1,636
First Language
English
Primarily Uses
RMVXA
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?
 
Last edited:

MightyWario_MV

Persona User
Veteran
Joined
Jun 18, 2016
Messages
56
Reaction score
7
First Language
English
Primarily Uses
RMMV
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.
 

Sword_of_Dusk

Ace Attorney
Veteran
Joined
Sep 13, 2015
Messages
1,019
Reaction score
1,035
First Language
English
Primarily Uses
RMMV
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?
 

Latest Threads

Latest Posts

Latest Profile Posts

Debugging multiplayer issues... I'm having fun, right?
yay_streaming.jpg

For just starting streaming on the 10th... Definitely not the worst. :LZScheeze:

Granted I need 333.34 hours a month on average to achieve money. So I don't really expect that, but it sure has helped my game dev go much faster.
Proud on how this map turned out.

FnmhDLIXgAAOvIC
I just finally fixed a huge problem that wouldn’t let my game load and would crash it.. I thought that I was gonna have to trash the project and start over lol
The feeling when you finally found and killed that one gamebreaker that you could not really grasp before.:kaojoy:

Forum statistics

Threads
128,327
Messages
1,193,626
Members
168,808
Latest member
snotery
Top