There isn't a notetag that lets you refer to the total of the flat bonus. In fact, as far as I can see in the documentation, the notetags don't let you refer to any portion of the damage being dealt.
So you could add 10% of the caster's mat value, but not use the caster's mat to boost the bonus damage by 10%.
I think this would more easily be done without needing any plugins, just in the skill's damage formula.
Please note: A discussion has already been started about different things you can do with these formulas so please direct those comments and question to the appropriate thread. https://forums.rpgmakerweb.com/index.php?threads/rmmv-damage-formula-ideas-and-help.47099/ A link to the list of...
forums.rpgmakerweb.com
So, pretending your existing formula is
a.mat - b.mdf you could do:
Code:
(a.mat - b.mdf) * (1 + (a.isStateAffected(42) ? a.mat * .01 : 0))
where 42 is the ID of the state that's causing the bonus damage.
That would make the skill do additional damage equal to the caster's mat as a percentage as long as they have the state on.
Or, if you're using the Element core for other things, you could put
a.mat * .01 in the JS Element Rate notetag. I know that's not precisely what you were asking for.
Oh, maybe I should explain a bit better.
In the plugin, there is a Notetag -
<Dealt Element name Flat: +x%>
Which boosts the elemental damage of the specific element by a certain percentage.
So, if I put this Notetag for the state,
<Dealt Element Earth Flat: +50%>
Then it works and boosts Earth damage by 50%.
Yet, I wish to create a boost spell, which boosts the elemental damage not by the exact amount, by the percentage amount equal to caster's magic attack.
So I thought, if it could be written by the Javascript Notetag,
<JS Received Element name Flat: code>
But I'm not really familiar with the Javascript, so I don't know, how to write the code there correctly, or if that is possible at all.