Someone can help me with a battle formula?

I´m experimenting with the battle formulas for my proyect, the syntaxis is the next one:
a.paramPlus(2)
My idea is get the bonus paramer of atk and hurt the enemy, but when I tested it only apears the message " Bat A isnt recive any damage"
Someone can explain me how can use "paramPlus" in the battle formulas? and how can I solve this problem?

PD: Sorry for my English I don´t speak it very well.
According to my interpretation of the RPG Maker MV and MZ Script Calls spreadsheet, you should use the short call form, namely a.atk instead.
you should use the short call form, namely a.atk instead.
That's not the same thing. a.atk will give the actor's total ATK value (from class, equipment, states, etc.). The OP specifically is only looking to use the bonus beyond the base class value.

That is, presuming the request is worded correctly...but that's why one would be looking at the paramPlus method.

My idea is get the bonus paramer of atk and hurt the enemy, but when I tested it only apears the message " Bat A isnt recive any damage"
Someone can explain me how can use "paramPlus" in the battle formulas? and how can I solve this problem?
You're calling it correctly. What does your entire damage formula look like? It sounds like your formula might have some other syntax that's causing it to return undefined.

Even if your actor didn't have any bonus to ATK because they weren't holding a weapon or that weapon didn't have any ATK on it, that method should return 0 which wouldn't invalidate the attack.
That's not the same thing. a.atk will give the actor's total ATK value (from class, equipment, states, etc.). The OP specifically is only looking to use the bonus beyond the base class value.

That is, presuming the request is worded correctly...but that's why one would be looking at the paramPlus method.


You're calling it correctly. What does your entire damage formula look like? It sounds like your formula might have some other syntax that's causing it to return undefined.

Even if your actor didn't have any bonus to ATK because they weren't holding a weapon or that weapon didn't have any ATK on it, that method should return 0 which wouldn't invalidate the attack.
It doesnt do any damage, 0.
How works the bonus parameter in weapons and, its necessary for get the bonus?
It doesnt do any damage, 0.
How works the bonus parameter in weapons and, its necessary for get the bonus?
The weapon attack value as set in the database is added to the _paramPlus array, so we're really going to need to see your actual damage formula to be able to tell why it isn't giving you the result you want. If it's doing 0, you have an error that's short-circuiting it to its failsafe value.
The weapon attack value as set in the database is added to the _paramPlus array, so we're really going to need to see your actual damage formula to be able to tell why it isn't giving you the result you want. If it's doing 0, you have an error that's short-circuiting it to its failsafe value.
My formula its "a.paramPlus(2)" my idea was, with the bonus of the atk, did damage but it only do 0 damage 🙁
Can you show actual screenshots of the damage formula box and the parameters area of the weapon you're using?
and how and where are you testing that?
battletest won't work because the actors there don't have anything beyond base values, and loading an older savefile will ignore recent changes to the database and a few other things that might have gone wrong.
Battle-test is fine. The damage formula a.paramPlus(2) works OK for me: it returns the permanent ATK bonus (from Change Parameters) plus the bonus from equipment (weapons/armour) for the attacker. This will usually be 0 for enemies. It does not include the bonus from buffs or states.

Like kyonides said, if you want the total ATK value, use a.atk instead.

Another idea: Armor can have an ATK value, and Weapon/Armor ATK values can be negative. They might be cancelling out? The damage formula has a minimum of 0 (can't be negative).

Like Trihan said, screenshots may help. It might also help to have a screenshot of the actor in the database, or the battle-test setup window, so we can see what equipment they are using.

Original thread: https://forums.rpgmakerweb.com/threads/someone-can-help-me-with-a-battle-formula.152610/