[HELP atack formula] Need sintax help.

--EDIT--

Tried to just add the actual number without the leading zeros. Seemed to work. I´ll let this post here maybe it can help other people. ^^

Sample

(v[4] + v[5] + a.atk) - (v[22] + v[24]) - 1
-------------------------
I am trying to make a formula using the 3D&T pen and paper rpg system.
The battle formule is the following:
(Heroe´s strenght + Heroe´s hability + a.atk ) - (Enemy´s hability + Enemy´s armor) - 1
The following:

Hero Strenght(var004)
Hero Hability(var005)
Monster Hability(var0024)
Monster Armor(var022,)

Are all stored in variables.

a.atack is default 1 itens such a sword would aply +1 to the atack but that´s just a side info wich don´t interfere in the formula to actually work.

I HAVE TRIED THE FORMULA TOPIC ALREADY DID NOT FIND THE HELP I NEED THERE.

this formula worked perfectly ate rpg maker vx ace. Now I am trying to use it at the MV

(v[004] + v[005] + a.atk) - (v[022] + v[024]) - 1

In the VM it´s not working. even when I trie to take off the "(" ")" or use them with spaces like in
"( v[004] + v[005] + a.tak )"

Please need help as I don´t use the normal atributes from the default (like magic atack magic def luck and so on)


 

Original thread: https://forums.rpgmakerweb.com/threads/help-atack-formula-need-sintax-help.50726/