Help - Search - Members - Calendar
Full Version: Simple Damage Formula
RPG RPG Revolution Forums > Scripting > Script Development and Support > Script Requests
TNinja
Good evening gentlemen(gentle...woman?).

I was wondering if you fine people could make make some simple damage formula for me. A script that overrides the current formula, maybe?

When I say "simple", I mean something like add and subtract. Like Fire Emblem or Mabinogi.

A few examples
Attack/Magic - Defence/Resistance = Damage.
(Attack + Weapon) - (Defence + Armor) = Damage



Would that be possible?
-dah0rst-
Of course this is no problem, but to do so I need the exact parameters you use and the formula you need wink.gif
And by the way- it's Ladies ^^
TNinja
Well, the changes I wants are for the ATK, DEF and SPI.

Where DEF subtracts damage from ATK for final damage output.
As for SPI, seeing there is no resistance, I'll go with SPI subtracting SPI. Meaning you won't be able to do damage against someone with the same SPI.
Unless you're super sweet and add a fifth parameter called Resist. But that might disturb some other scripts I stuffed in my game, so meh.

Also of course SPI is magic damage.


As for skills, I'm a bit unsure how the stuff works there, for some reason.


I hope it won't crash roads with damage multiplies like weaknesses and resistances, or the Tankentai SBS script?

EDIT:
Found this in the F1 content.
CODE
If the base damage is a positive number
Damage = Base Damage
+ (A's attack x 4 x Attack F ÷ 100)
+ (A's spirit x 2 x Spirit F ÷ 100)
- (B's defense x 2 x Attack F ÷ 100)
- (B's spirit x 1 x Spirit F ÷ 100)

If the results of the calculations would be a negative number, it will be made 0.
If the base damage is a negative number
Damage = Base Damage
- (A's attack x 4 x Attack F ÷ 100)
- (A's spirit x 2 x Spirit F ÷ 100)


What if you just changes them in to this?
CODE
If the base damage is a positive number
Damage = Base Damage
+ (A's attack x 1 x Attack F ÷ 100)
+ (A's spirit x 1 x Spirit F ÷ 100)
- (B's defense x 1 x Attack F ÷ 100)
- (B's spirit x 1 x Spirit F ÷ 100)

If the results of the calculations would be a negative number, it will be made 0.
If the base damage is a negative number
Damage = Base Damage
- (A's attack × 1 × Attack F ÷ 100)
- (A's spirit × 1 × Spirit F ÷ 100)
TNinja
Any progress?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.