Damage Formula depending on how low the enemies AGI is

OM3GA-Z3RO

Wounded Seraphim
Veteran
Joined
Nov 19, 2013
Messages
826
Reaction score
181
Primarily Uses
Right I have been stuck with this damage formula for quite sometime now, what I want is a damage formula which deals more damage the lower the enemies AGI is.

I already tried: 750 + a.mat * b. agi

but then the damage deals like 54k damage which is WAY too high.

then I tried the opposite: 750 + a.mat / b. agi

but the damage never goes higher then 750, just goes lower and lower.

Anyone know the correct formula for this damage equation?
 

Blade

Slicing~
Veteran
Joined
Jan 6, 2013
Messages
596
Reaction score
28
First Language
Dutch
Primarily Uses
(750 + a.mat) * (1000/b.agi) ?

I'm not sure what you mean with "Lower agi" but this might work out if average AGI is in between the 200-700. You can lower the 1000 to anything.
 

West Mains

Veteran
Veteran
Joined
Feb 24, 2013
Messages
1,003
Reaction score
96
First Language
English
Primarily Uses
* b.agi + b.def ?

Im not sure.
 

Chaos Avian

Abyssal Wing
Restaff
Joined
Jul 16, 2012
Messages
3,230
Reaction score
785
First Language
English
Primarily Uses
"4 * a.atk - b.agi + b.def" West Mains has the right idea from adding a def value in otherwise you'd make mince meat out of giant enemy crabs and island turtles~ :p
 

OM3GA-Z3RO

Wounded Seraphim
Veteran
Joined
Nov 19, 2013
Messages
826
Reaction score
181
Primarily Uses
Hmm tried your Formula but I get a script (eval) error when the spell hits the enemy.
 

OM3GA-Z3RO

Wounded Seraphim
Veteran
Joined
Nov 19, 2013
Messages
826
Reaction score
181
Primarily Uses
Thanks that would be much appreciated, this formula has been killing me and it is really needed for my characters niche.

EDIT

WAIT!! I found the problem in why I keep getting the error! I looked closer into the formula box and saw a tiny ' in between the formula's XD

Tested it and check the damage differences by changing enemy agility and it works great, thanks for the help everyone.
 
Last edited by a moderator:

West Mains

Veteran
Veteran
Joined
Feb 24, 2013
Messages
1,003
Reaction score
96
First Language
English
Primarily Uses
Well, I added - b.agi * 1 to test it and it definitely changed based on their agility. The higher their agility was the lower the overall damage. Took the default Fire Breath spell, took a slime and gave it 20 Agil. Initially did little under 20 damage, gave it about 5 Agility and suddenly it's taking around 30 or so damage.

I think the game freaks out if you add a + b.x, so I guess for the enemy side it can only be minus. 

Full formula used was this:

10 + a.atk * 0.72 + a.mat * 0.2 - b.def * 0.36 - b.mdf * 0.2 - b.agi * 1

If that helps at all.

EDIT:

Ah! Those problems can arise!! 

I remember once I was trying to learn python and the script wouldn't work. Turned out I had accidentally type ( where I should have put a {. 
 
Last edited by a moderator:

OM3GA-Z3RO

Wounded Seraphim
Veteran
Joined
Nov 19, 2013
Messages
826
Reaction score
181
Primarily Uses
I will give this a test as well and see which one fairs better, thanks for all the assistance.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top