Formula for attack that gets stronger for each dead party member?

RCXGaming

Champion of Brightmoon Tor
Veteran
Joined
Jan 4, 2019
Messages
602
Reaction score
1,328
First Language
English
Primarily Uses
RMVXA
As the title says, I'm curious what a formula like this would look like.

The idea is that for each dead party member in battle_party (aka, nobody in reserve), this attack gets more powerful the more dead allies you have.
 

DaRealSonGoku

Saiyan
Member
Joined
Dec 29, 2019
Messages
14
Reaction score
9
First Language
English
Primarily Uses
RMMV
If you want to make something like that, you can use variables in the formula.
For Example,
Take some random variable. Let's say variable ID 12.
Set it to 1 as default.
Make a parallel common event that adds 1 to the variable whenever an ally dies and subtracts 1 when an ally is revived.
Variables are used like this in a formula: v[ID]. ID - index of the variable.
So you could have a skill that gets stronger the higher variable is.
Thus, the formula can be:

a.atk * v[12] * 2 - b.def * 3

Now, whenever one ally is dead, the attack doubles.
When two allies are dead, it triples.
When three allies are dead, it quadruples.
And so on.
Hope this helped you out.
 

Latest Threads

Latest Posts

Latest Profile Posts

Can hopefully move onto doing visual effects and sound design now. :kaophew:

The latest RPG Maker Games Critique with Studio Blue starts now! Let's jump into Kamigami: Clash of the Gods!

Title Screen 100% Finished
Evangeline.png
I'm starting to enjoy doing pixel art! Not to mention it's getting easier to do commissions :kaojoy:

Forum statistics

Threads
124,363
Messages
1,163,054
Members
163,154
Latest member
DrMomake
Top