Burning Aura skill help

I am using the Elemental Core plugin but am not sure how to make a skill that does either of the following, and yes I have tried.

Elemental Aura:
Last X turns, while active, adds X elemental damage of X% to normal attack to the actors physical attacks.

Elemental Aura Variant:
While active, when a foe hits the actor with it, they take X% elemental damage
You'd also need to use State Core and use the notetags in it that allows you to run code when you hit and when you're hit
Oh....didn't even think of that. I have that too. Still drawing a blank on this though.
I can make one that adds Fire while in use, but it's not adding to the "physical" skills nor is it adding a set % of fire damage.
Did not mean to double post, anyways, I don't see those within that plugin.
You'd also need to use State Core and use the notetags in it that allows you to run code when you hit and when you're hit
Also, I don't see those in Buff&State core
Ive just rechecked Yanflys page for the Buff and State core plugin and the notetags for the effects I said are on the Lunatic Mode - Custom Timing Effects and Custom Action Effects part.. Better read yanflys page for the list of notetags you can use.
Ah ill check those out.
Link for convenience: http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/

I haven't tested either of these Buffs & States notetags, but maybe they'll help as a starting point~
  1. Extra damage of element ID 5, shown as a separate damage popup:
    Code:
    <Custom Confirm Effect>
    // 20% of standard damage
    var bonusDmg = value * 0.2;
    // Multiply by relevant element rate
    bonusDmg *= defender.elementRate(5);
    // Round down, subtract from target HP
    defender.gainHp(-Math.floor(bonusDmg));
    </Custom Confirm Effect>
  2. Retaliatory damage of element 5:
    Code:
    <Custom React Effect>
    // Attacker takes 50 damage
    var dmg = 50;
    // Multiply by relevant element rate
    dmg *= attacker.elementRate(5);
    // Round down and apply
    attacker.gainHp(-Math.floor(dmg));
    </Custom React Effect>
You'll probably want to adjust the element ID and damage formulae, these are just examples.
Thank you.
Managed to use your example to create mine (yours is only half of what i wanted it to do). Seriously, thanks, I was stuck with this one.

Only part not functioning correctly is adding the damage to attacks, but I think i can figure it out. Almost feel like there is something missing in the Custom effect that is linking it to the attack command but a Confirm should do that.
You're welcome~!

Oh, do you mean the "physical attacks only" thing? You could try something like this:
Code:
if (this.isPhysical()) {
  // put everything in here
}
Otherwise you could maybe check the console (press F8 during playtest) and see if there are any errors (red text) showing up there? 😅

Confirm effects should run when the battler affected by the state performs an action; if you want to check when the notetag gets executed, you can add something like this to the beginning of the notetag:
Code:
console.log("doing confirm effect!");
This will show the specified text in the console window. Useful for debugging! ^_^
Yea, the physical attacks only thing is the only part not working (actually it isn't adding the damage at all).

However, the rest of my skill is working; when in effect it blocks an X amount of fire damage (has a threshold, break if it goes over; physical attacks go through and water and ice cause it to end), and deals X to attacks that hit physically.

Also, just checked, I am not getting any errors.
Also on the notetag part. I don't see it ever being called using the method above.

Question...the bonusDmg *= defenders elemental rate. How does that work?
Moved to: Javascript/Plugin Support
Moved to: Javascript/Plugin Support

Will do? It originally wasn't intended to be a coding or plugin help (didn't realize how much coding went into it).
@J_spencer93 that's okay. It often happens that as a solution is developed it becomes clear that a thread needs to be moved. As a general rule of thumb, though, if your query hinges around using a plugin, it is better to start it in this forum.
Yea, the physical attacks only thing is the only part not working (actually it isn't adding the damage at all).

However, the rest of my skill is working; when in effect it blocks an X amount of fire damage (has a threshold, break if it goes over; physical attacks go through and water and ice cause it to end), and deals X to attacks that hit physically.

Also, just checked, I am not getting any errors.
Also on the notetag part. I don't see it ever being called using the method above.
OK, I just tested with this notetag, which works for me. I think previously it was adding the damage but the second popup wasn't being shown.
Spoiler
Code:
<Custom Confirm Effect>
// Only if dealing physical damage
if (this.isPhysical() && value > 0) {
  console.log("Fire!");
  // 20% of standard damage
  var bonusDmg = value * 0.2;
  // Multiply by relevant element rate
  bonusDmg *= defender.elementRate(2);
  // Round down, add to damage
  value += Math.floor(bonusDmg);
  // Play animation!
  defender.startAnimation(67);
}
</Custom Confirm Effect>
This version just adds the damage directly to the existing value, rather than trying to make a second "element damage" popup. 😮‍💨

I added an animation too, just for the example. Both the console text "Fire!" and the animation (default Fire One 2) play as expected for me, and the damage of my attack increased from 84 -> 100 (+20% rounded down) as expected.

If yours still isn't working, maybe copy+paste it here? You could also check the order of your Yanfly plugins (recommended order here: link) and ensure they're all up-to-date.
Question...the bonusDmg *= defenders elemental rate. How does that work?
In English, the line says "multiply the bonusDmg variable by the defender's element rate for this element". So if elementRate(5) returns 0.5 (50%) then the bonusDmg is halved. 🙂

The element rate is a multiplier for damage of that element, e.g. 50% element rate means you'll take half damage from that element. The input value has already been multiplied by the element rate matching the skill element, and this bonus damage is of a particular element...so we calculate the damage, then "fake" the element rate thing.
Will do. Ill test this out and if still having issue's ill post it all here.

Also, I thought that is how that line went, just wasn't 100%.

IT WORKS! lol

Was recreating the magma armor ability of Roshi from Naruto in my game. Was a little harder to do then I thought. Still its a neat high level Geomancy ability.
Great! Happy RPG Making~ 😂

Original thread: https://forums.rpgmakerweb.com/threads/burning-aura-skill-help.107583/