Damage Formula - Attack power without the equipped weapon

Hello. a.atk is a stat which affects the general attack of an actor. That's fine but somewhat problematic I you want to use certain skills which aren't involve any weapon.
I need a possibility to calculate the damage without adding the damage which the weapon would inflict. Is there any stat for this or any good way to accomplish such a thing?
Use two different attack stats with one representing the damage from the weapon, and the other representing additional damage from other sources such as Character or Equipment. Then your normal attack can be:
a.atk +a.___ - b.def
or whatever, and then you can have a skill that does something like
2 + a.___ - b.def
or maybe just
a.___ - b.def
or whatever kind of formula you want to use.
If you want to use only the base attack stat, without any equipment bonus added, it should be a.paramBase(2) (from this list: http://www.rpgmakercentral.com/topic/36290-damage-formulas-101-mv-edition/)

If you only want to ignore the weapon atk stat, but keep all the other eqipment bonuses, I would just use a.atk and subtract the weapon's atk stat from it. I don't know the code for that right now, but I can look it up later.
Try this code:
(a.atk - a.equips()[0].atk)

That's the user's atk minus the atk from the current weapon slot.

Note that "equips()[0]" refers to your weapon slots, and in the default engine this includes dual weilding. However Equiping Plugins like Yanfly's Equip Core & Himeworks Equip Slots change how this function works.
For Yanfly this means the code refers to the first equip slot you have. Regardless if it's a weapon or not.
Thanks so much you two! I thought I had to invent a entire new stat for this which wouldn't be so effortless like it seems.
But that are convinient and adequate solutions. Both of them.
Try this code:
(a.atk - a.equips()[0].atk)

That's the user's atk minus the atk from the current weapon slot.

Note that "equips()[0]" refers to your weapon slots, and in the default engine this includes dual weilding. However Equiping Plugins like Yanfly's Equip Core & Himeworks Equip Slots change how this function works.
For Yanfly this means the code refers to the first equip slot you have. Regardless if it's a weapon or not.

I tried that, but for me it just resulted in an attack that always did 0 damage, even if I made the formula:
1000 + (a.atk - a.equips()[0].atk)
@silent_drew do you have any plugins that alter how weapons and/or armor is treated. Like Yanfly's Equip Core or a Dual Weild Plugin?

Also are you refering to enemies using this skill or actors.

If that's the case then try this:
a.isActor() ? 1000 + (a.atk - a.equips()[0] : 1000;

The code above says if the user of the skill is an actor they'll do a 1000 + (thier attack - their weapon attack); however if the are not an actor they'll just do 1000.
You also have to add a check if the actor actually has a weapon in slot 0, otherwise it will throw an error.
So I would change it to:
Code:
a.isActor() && a.equips()[0] ? 1000 + (a.atk - a.equips()[0].atk) : 1000;
You also have to add a check if the actor actually has a weapon in slot 0, otherwise it will throw an error.
So I would change it to:
Code:
a.isActor() && a.equips()[0] ? 1000 + (a.atk - a.equips()[0].atk) : 1000;

I tried both and they still did 0 damage.
Did you try?
Code:
a.paramBase(2) * 4 - b.def * 2

Original thread: https://forums.rpgmakerweb.com/threads/damage-formula-attack-power-without-the-equipped-weapon.82859/