Help! Equipment that amplifies elemental damage.

Hi all, hope you're all doing well.

I'm using Visustella's MZ plugins and specifically the Press Turn Battle System, where if you hit an element you gain an extra turn.

Since the game is heavily reliant on using elemental damage, I wanted to see if I could have equipment that the player can equip that then applies a passive state that amplifies/increases elemental damage for that element. So you equip a Blue Gem and doing so increases the damage output for ice-based magic.

I was using <Dealt Element 3 Plus: +30%> from the Elements and Status Menu Core Plugin but came to an issue...

If you equip the Blue Gem and cast ice on an enemy that is not weak to ice, it can still register as hitting a weakness and gaining a turn even though the enemy is not weak to ice! I just wanted it to amplify the damage output, not necessary mess around with the Element Rate.

I think this probably is just an issue specific to the PTB system, but I could be wrong. And there may be a damage formula way to fix it, but that could become quite tedious.

It's not the end of the world if it can't be done with the PTB, but it would allow for more player customization.

Thanks!!
I think this probably is just an issue specific to the PTB system
its just a result of the way the element dealt notetags in the element core works. it does it by modifying the element rate used by actions directly. so as youve observed, an enemy that was neutral to ice taking a hit from someone with that 30% ice boost ends up with an effective 130% element rate for ice and itll count as being hit by a weakness

try this in the notebox for the gem and replace the x for the id of the element
Code:
<JS Pre-Damage as User>
if (this.isDamage() && this.elements().contains(x))
  value += Math.ceil(value*.3);
</JS Pre-Damage as User>
@Robro33

This worked! You are amazing!! Thank you so much!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-equipment-that-amplifies-elemental-damage.181233/