State to increase a specific Element's Damage

@JamesRyan Using the last code you posted, I only changes the one part in the Confirm Effect and it worked perfectly.
So the problem did not come from the tags. I guess something else was wrong in @Kevin Hirst's setup which prevented his plugin from working.
Is there any other way to troubleshoot the problem?

I can't imagine our plugin codes are different but;
The error references 3 lines of the plugin script, which are "2181," "2182," and "2183" and are as follows.

console.log(message);
console.log(code || 'NON-EXISTENT');
console.error(e);


So I guess I don't fully understand states too well, but why try to remove the state? Can it not be set up so that it just lasts for x amount of turns and will fall of regardless if a fire spell was cast or not.

I am now using a new project to try make this work. I only have 4 plugins installed from what I downloaded. 3 Yanfly plugins and console on boot.
Here is a new screenshot of the console using the last notetag suggested:
<Custom Apply Effect>
target._checkFireDmg = target._checkFireDmg || 0;
</Custom Apply Effect>

<Custom Confirm Effect>
var elements = this.getItemElements();
var fireId = 2;
if (elements.contains(fireId)){
var rate = 100;
value += Math.ceil(value * rate);
target._checkFireDmg = 1;}
</Custom Confirm Effect>

<Custom Action End Effect>
if (target._checkFireDmg > 0){
target.removeState(11);}
</Custom Action End Effect>

<Custom Remove Effect>
target._checkFireDmg = undefined;
</Custom Remove Effect>

upload_2017-10-22_8-57-25.png
Looks like this is caused by the Battle Engine Core itself. Try to turn it off. It is very strange that your Battle Engine Core is conflicting with Buffs & States Core.
I turned it off and got a new error.
upload_2017-10-22_9-53-34.png



I can't see that this is causing a problem but rpg manager line 2522 is:

2519 - BattleManager.updateAction = function() {
2520 - var target = this._targets.shift();
2521 - if (target) {
2522 - this.invokeAction(this._subject, target);
2523 - } else {
2524 - this.endAction();
2525 - }
2526 - };

I even tried completely uninstalling RPG Maker and reinstalling and its the same error posted..



Edit:
An additional observation. I'm doing something completely unrelated; I made an item that gives a state to my entire party.
The state gives:
Sp-Parameter Experience * 1000%
Party Ability Gold Double

I am fighting 2 bats that give 10 EXP and 10 Gold.
I use the item and the battle finishes, I get 20 EXP and 20 Gold. The battle confirms this amount, and also on the menu screen and the status screen.

This seems like a very simple state and for some reason it is not working either. Is there just something really wrong with my game, I wonder...
Lol now really new but still the same error. I'm sorry to say this but i give up in this case. I really can't understand why this only happens to you :blink:
Thanks for all your help.

I edited my last post while you were posting. I'm not sure that it means anything, but here it what I added.


An additional observation. I'm doing something completely unrelated; I made an item that gives a state to my entire party.
The state gives:
Sp-Parameter Experience * 1000%
Party Ability Gold Double

I am fighting 2 bats that give 10 EXP and 10 Gold.
I use the item and the battle finishes, I get 20 EXP and 20 Gold. The battle confirms this amount, and also on the menu screen and the status screen.

This seems like a very simple state and for some reason it is not working either. Is there just something really wrong with my game, I wonder...
Engine broken? How about redownloading and reinstalling MV? I think it is the last hope.
I deleted all file related to RPG Maker MV along with all the plugins I have and then reinstalled and re-downloaded plugins.

I have the same issue.

Thanks anyway..




Edit:

So I downloaded YEP_ElementCore and it works pretty easily.
Just add "<Element Magnify 2: +500%>" or whatever percentage to the state notetag.

Although my EXP buff potion still isn't working. But I can increase experience rate permanently with the plugin "SRD_StatDistribution"
I wish there were a plugin where I could just type <a.exr +50%> into the notetag and it worked.

Anyway, thanks to JamesRyan and Kirbwarrior for helping out a lot. Sorry for my noobness..
I was also having this same problem. I wanted to share my solution.

1. I have a passive state called "trajectory analysis", that is supposed to increase the attack power by 120% of any weapon which has the element type of "KINETIC".

2. I was having a very hard time getting certain elements to do more damage to the enemy, but I found a way.

3. Using Yanfly's AutoPassiveStates plugin. I created a passive state called "KINETIC WEAPON", which does nothing. I set the state to happen whenever a kinetic weapon is equipped.

4. Then using Yanfly's Passive Conditions plugin, I created another state called "Trajectory Analysis", that increases attack by 120%, but only if the State "Kinetic Weapon" is active.

5. The final component is another plugin called "hidden states" by Maliki79, that hides the visibility of the various states.

6. When I tried to do anything related to the element rate or affecting damage based on element, it was not working at all, this was the only solution that worked for me. I know this thread is a few years old, so I am posting this in case other people run into the same thing, took me a good 3 days to figure this out, was banging head against the wall.

WORKS LIKE A CHARM.

Passive1.jpg


Passive2.jpg


Passive3.jpg


Passive4.jpg

Passive5.jpg

Original thread: https://forums.rpgmakerweb.com/threads/state-to-increase-a-specific-elements-damage.86044/