Attack + Inflict Self-Status?

Pastel_Panda

Villager
Member
Joined
Oct 29, 2018
Messages
13
Reaction score
12
First Language
English
Primarily Uses
RMVXA
So I want to include a sort of "berserker" skill in a project. This skill does damage to all enemies, but it also inflicts confusion on the user. Problem is, I'm not quite sure how to go about doing it.

I tried adding it into the damage formula like so:

a.atk + (a.atk * 4 - b.def *2), a.add_state(7)

However when I run the test battle to see if it works, it gives me this error:

1580608664918.png

I know very little about the damage formula and how the syntax works, so I'm not sure how to go about changing this. Could anyone help me figure it out (and possibly explain it in a way that's easy for a dumb like me to understand)?
 

Lord Vectra

Master Eventer
Veteran
Joined
Dec 6, 2015
Messages
211
Reaction score
336
First Language
English
Primarily Uses
RMVXA
a.add_state(7); a.atk + (a.atk * 4 - b.def *2)

1. Use semi-colon instead.
2. The last formula in the damage formula is read as the damage calculation. The intended formula doesn't make no sense unless it was last so you confused the program (essentially lol)
 

Pastel_Panda

Villager
Member
Joined
Oct 29, 2018
Messages
13
Reaction score
12
First Language
English
Primarily Uses
RMVXA
a.add_state(7); a.atk + (a.atk * 4 - b.def *2)

1. Use semi-colon instead.
2. The last formula in the damage formula is read as the damage calculation. The intended formula doesn't make no sense unless it was last so you confused the program (essentially lol)
I ended up getting the same error when I tried changing the formula. I figured maybe it's because I had two parts to the actual damage formula (the character's attack being added to atk*4-def*2) so I took the first part out, but it still gave me the same error.

I'll also add that I have not added external scripts or edited the existing ones.

EDIT: I'm dumb and figured it out. I forgot to put a space between * and 2. Whoops. It works now, thanks!
 

Lord Vectra

Master Eventer
Veteran
Joined
Dec 6, 2015
Messages
211
Reaction score
336
First Language
English
Primarily Uses
RMVXA
I ended up getting the same error when I tried changing the formula. I figured maybe it's because I had two parts to the actual damage formula (the character's attack being added to atk*4-def*2) so I took the first part out, but it still gave me the same error.

I'll also add that I have not added external scripts or edited the existing ones.

EDIT: I'm dumb and figured it out. I forgot to put a space between * and 2. Whoops. It works now, thanks!
OOF, I hate when that happens. The last part of the formula is used as the damage calc though.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,845
Messages
1,016,961
Members
137,561
Latest member
JaCrispy85
Top