Boosting Magical Damage DEALT while equipping a item.

Hello everyone, I have been trying to come up with a way to boost Magical Damage dealt by a actor in the party, if they are
equipping a certain ring.

So What I have done so far, is make a common event that plays at turn 0 of every possible battle, that checks to see if
the magical users in my game are wearing said Ring:

1647870079880.png


Then I made the State for Magical Damage: 110% and have it apply to all enemies on the battlefield if one of the 2 actors
is wearing the ring! Which works, the problem I just realized that I ran into is the Magical damage will be buffed for ALL party members, is there a way to turn off the state if anyone that is NOT wearing the ring is attacking?
The easiest way to do this would be to use Yanfly's Buffs & States and Auto Passive States to attach a passive state to the ring that has notetags to increase outgoing damage of magic type.

I'm sure you can find existing code for it with a Google, but we can help if you get stuck.
The easiest way to do this would be to use Yanfly's Buffs & States and Auto Passive States to attach a passive state to the ring that has notetags to increase outgoing damage of magic type.

I'm sure you can find existing code for it with a Google, but we can help if you get stuck.
So essentially with the Timing notetags, I can find a way to apply a state to the target(s) when my Mage, Beatrix is attacking, and when she finishes attacking, I can remove the state?
So essentially with the Timing notetags, I can find a way to apply a state to the target(s) when my Mage, Beatrix is attacking, and when she finishes attacking, I can remove the state?
No, that's not what I said. The state is on the actor who has the ring on, and it alters her outgoing damage. The enemies have nothing to do with it, nothing gets applied and removed.
But the Magical Damage parameter can only increase/decrease resistance, unless there's a parameter I don't know about that increases magical damage dealt?
But the Magical Damage parameter can only increase/decrease resistance, unless there's a parameter I don't know about that increases magical damage dealt?
Again, it wouldn't be a parameter on the state, it would be a notetag that alters the outgoing damage.

Code:
<Custom Confirm Effect>
if (this.isMagicSkill() && this.isHpEffect())
    value*=1.1;
</Custom Confirm Effect>

That will increase the damage/healing by 10% on any skill that's categorized as a Magic Skill in the System tab of your database.
Sorry, I'm really bad with the Script aspect of this stuff, maybe I should look up some basic script
things for game making, but im unsure where to go, so from what I understand now, I use that formula for different stats based on the magic damage buff I want, and I can apply these as passive states on my items as I've done before?

EDIT: So I figured out what you meant with the note tags, but I have run into another small issue, I happen to use SRDude's Skill Extender Plugin, which makes me classify all of my skills as "None" in order to put them into the skill menu, so is there a script call to check for the Hit type, rather then
this.isMagicSkill()?
1647880169110.png


EDIT EDIT: I tried this notetag, after reading some big post about hit types, and it works!
(5.0 is for testing the damage, definetely not putting that in the main game HAHA)
1647881540442.png

EDIT EDIT EDIT: I found a new problem when dealing with the note tags, it may be because of the IsMagical notetag that I tried, but my damage splats uhhh are gigantic (although it seems to be working correctly, its just the damage looks huge) It seems to be properly increasing the damage but then adding a 10-15 digit number at the end... (JUST DO Value*=Math.round(1.1); )
1647900265546.png

Original thread: https://forums.rpgmakerweb.com/threads/boosting-magical-damage-dealt-while-equipping-a-item.145972/