MZ Hime's Weapon Damage + WAY TextEval

I am using WAY_EvalText and Himework's Weapon Damage but they don't seem to mix in some ways.

Spoiler: Issue
ssfs.PNG

It shows up just fine in combat but...
dyd.PNG

So my assumption is that it there's an issue with Hime as the weapon formula is ''a.weaponDamage(b)''.

Anyone made the two work? Or know of alternatives to either plugins?
I also use Way_EvalText.
And the one thing you need to know is that you cannot put anything into the eval that does not exist, which is pretty much true for the entirety of programming.

''a.weaponDamage(b)''
I don't know about Himes Weapon Damage, but 'b' usually refers to the target of an action.

Obviously, outside of the battle, there is no such thing as a target, and neither is there an action.

Have you tested out if just writing ''a.weaponDamage()' works?
Or perhaps replacing "b" with "a" instead, referencing itself e.g. ''a.weaponDamage(a)''.
I also use Way_EvalText.
And the one thing you need to know is that you cannot put anything into the eval that does not exist, which is pretty much true for the entirety of programming.

''a.weaponDamage(b)''
I don't know about Himes Weapon Damage, but 'b' usually refers to the target of an action.

Obviously, outside of the battle, there is no such thing as a target.

Have you tested out if just writing ''a.weaponDamage()' works?
Or perhaps replacing "b" with "a" instead, referencing itself e.g. ''a.weaponDamage(a)''

The last suggestion seems to work.

I didn't try that as I assumed b stood for the damage formula based on the plugin's description.

Thanks 😛
The last suggestion seems to work.

I didn't try that as I assumed b stood for the damage formula based on the plugin's description.

Thanks 😛

There's also this thread that refers so a similar issue:


Could be useful for you or others needing help with this similar issue.

The solution uses "$gameParty.menuActor()" over "user/a" methods and works in battle and in menus.
There's also this thread that refers so a similar issue:


Could be useful for you or others needing help with this similar issue.

The solution uses "$gameParty.menuActor()" over "user/a" methods and works in battle and in menus.

@ScorchedGround 's solution seems to have worked, I will keep this in mind if I run into something later thought.
@Willibab
Just a little tidbit for added information:

I Just took a gander at the code of the plugin. It's fairly compact to be honest.

And I am fairly certain that with my approach you cannot
reference the target in your weapon notetags.

Because having a target in the notetag would require you write a.weaponDamage(b) again.
Using a.weaponDamage(a) would still *technically* work, but it would not take the numbers you are looking for.

Otherwise, I think you should be good to go.
@Willibab
Just a little tidbit for added information:

I Just took a gander at the code of the plugin. It's fairly compact to be honest.

And I am fairly certain that with my approach you cannot
reference the target in your weapon notetags.

Because having a target in the notetag would require you write a.weaponDamage(b) again.
Using a.weaponDamage(a) would still *technically* work, but it would not take the numbers you are looking for.

Otherwise, I think you should be good to go.

I don't use the DEF stat in formulas so I think it will be fine. My def only increases HP and reduces physical damage taken very slightly. The numbers will not represent your actual damage perfectly but good enough (not tested with higher numbers yet though.)

And yes, the code was insanely compact 😳 I thought for sure a plugin like weapon damage would be long. Odd that there are no alternatives (afaik)

Original thread: https://forums.rpgmakerweb.com/threads/himes-weapon-damage-way-texteval.147083/