Creating scaling damage formula

Miguelitojimz

Miguel Jimenez (Constructo Games)
Member
Joined
Aug 23, 2015
Messages
13
Reaction score
22
First Language
Spanish
I'm looking for a scaling formula for damage in VX ace, since i don't know if there's a script in VX Ace similar to Yanfly's armor scaling in MV.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
What does it do?
 

Miguelitojimz

Miguel Jimenez (Constructo Games)
Member
Joined
Aug 23, 2015
Messages
13
Reaction score
22
First Language
Spanish
What does it do?
"Armor Scaling allows the damage formula to be rid of “b.def * 2” and similar calculations in favor of scaling the damage relative to the armor values that the attack target has."
Basically, prevents enemies and players to stack too much DEF and take no damage.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
You could try something like this

a.atk * 4 * 100 / (100 + b.def * 2)

This will always deal a reasonable amount of damage. Obviously, you can change the * 4 and *2 parts to make weaker/stronger versions.
 

sleepy_sealion

Need to work harder!
Veteran
Joined
Jan 4, 2018
Messages
245
Reaction score
425
First Language
English
Primarily Uses
RMVXA
Something that might help you is to look at damage formula's from other games and see how they work.

I feel like something that works for me is adding "levels" in the equation or trying to set up an equation that makes a huge number, and then slap Math.sqrt around it to shrink and multiply it by a base damage number.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top