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

RCXGaming

Champion of Brightmoon Tor
Veteran
Joined
Jan 4, 2019
Messages
586
Reaction score
1,271
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
8
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 Profile Posts

The main game of my trilo/saga 50%OFF on Steam..... its now or never more
I swap between Ace and MZ so I can stay fresh but - what do you mean you can use subfolders in the plugin's folder for easier organization!?
Did some new music again, praise be. To the next song!
Watch Studio Blue play Numina by starlit in our latest RPG Maker Games Critique stream starting NOW!

Forum statistics

Threads
123,140
Messages
1,154,266
Members
161,475
Latest member
guihguih27
Top