Author Topic: [RPG] What damage formulas do you use?  (Read 11324 times)

0 Members and 1 Guest are viewing this topic.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
[RPG] What damage formulas do you use?
« on: November 27, 2010, 08:02:01 pm »
Though I have a set of formulas for Elmgon, they are not even close to realistic.  I've tried to change them, but to no avail.  This has me wondering what formulas does everyone else use, and if I can borrow their ideas.  Any advice is greatly appreciated.  Thanks in advanced. ;D

tl;dr: What damage formulas do you use in your RPGs?
« Last Edit: November 27, 2010, 08:02:20 pm by ztrumpet »

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: [RPG] What damage formulas do you use?
« Reply #1 on: November 27, 2010, 08:10:53 pm »
I like to make the attack and defense a ratio and then use that as the base for calculations. For example, the one I'm using right now looks like

(Attack+Weapons)/(Defense+Armor) * (power of move) * (level of attacker)/(some constant)+1

'Some constant' usually varies depending on what number range you have for power and attack/defense and level.
The +1 is there in case of 0 damage (So that level 1 stuff fighting each other won't turn into an endless battle :P)

Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: [RPG] What damage formulas do you use?
« Reply #2 on: November 27, 2010, 08:25:55 pm »
Well.....what kind of formulas?
For example, Imagination Quest has no levels.  The power of the attacks is based on how many battles they've fought.
I've got different formulas for different weapons and different attacks. (To account for accuracy and such).

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: [RPG] What damage formulas do you use?
« Reply #3 on: November 27, 2010, 09:56:23 pm »
In Nostalgia, I use Chrono Trigger's damage formula, albeit slightly modified value-wise to work with Axe.

[offtopic]
I'm posting from my DSi, and while it's still pretty weird, it's actually less painful than posting from my iPod.
[/offtopic]


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: [RPG] What damage formulas do you use?
« Reply #4 on: November 27, 2010, 10:15:34 pm »
In tao, i'm developing a formula that is based on the weakness of one attack and another (like water and fire), the 'level' of that attack, te amount of magic the person has, along with hp. I don't have an exact formula yet, because it's obviously complicated.  I think i'm going to write a program that i can put a formula in and try all values for and find the best/worse case scenario of literally everything. I'll post an update when that gets figured out.  Also, leveling up is done by battles and quests. In the game, you can specialize in any of the elements, but light for raito and dark fo kurai are basically the ones you use.  Throughout the game, you can train in others and learn other attacks.

But yeah, that's basically how damage is caclculated. It really depends on the game, though. What do you have to work with?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [RPG] What damage formulas do you use?
« Reply #5 on: November 28, 2010, 10:07:28 am »
9999, nothing else.

Just kidding, it depends of the game. In early Illusiat games and ROL series it can be stuff such as CharLV^2/2+randInt(1,LV) or CharLV^3/EnemyLV+randInt(1,LV*2), since almost everything is dependent on your level. Then there can be things such as weapon/armor affecting your stats or magic. In that case a magic formula might also add damage multiplying and in case of elemental properties as well.

Illusiat 13 damage/healing formulas are the following:

Cure=     int(20(MAG/9)(5*MLV
ATK SPELL=int(50(MAG/9)(5*MLV))/DEF*ELEM
REGULAR ATK=int((randint(0,9)=/=0)*ATK*LV/DEF

MLV is the level of that magic attack. It goes from 1 to 9. MAG power could go up to 1998.

Note that multiplication/division-based formulas can lead to extreme damage variations, though. This can pose problems in Axe RPGs, where damage is capped to 65536. For example, in Illusiat 13, a maxed out character regular attack power with an Atlas Ring equiped vs an enemy with 1 defense point would deal 509490 damage points. (Keep in mind that game had a damage cap of 99999, something that wouldn't be possible in Axe)
« Last Edit: November 28, 2010, 10:10:51 am by DJ Omnimaga »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: [RPG] What damage formulas do you use?
« Reply #6 on: November 28, 2010, 11:36:07 am »
Here's what I have to work with from each enemy/you/ally:
3: Attack (Normal Type)
4: Magic
5: Defense
7: Fire Protection
8: Ice Protection
9: Bolt Protection
10: Earth Protection
11: Fire Attack Power
12: Ice Attack Power
13: Bolt Attack Power
14: Earth Attack Power

ASHBAD_ALVIN

  • Guest
Re: [RPG] What damage formulas do you use?
« Reply #7 on: November 28, 2010, 11:45:16 am »
here's a good one:

chance of hitting: (accuracy*2 + dexterity) / strength (round to 100% if above)

Hit damage: (Strength*5 + wielded_weapon_power*2) + (weakness/protection stuff here) - (enemy_defense * 6)

that's the one for trio and niko: falling.

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: [RPG] What damage formulas do you use?
« Reply #8 on: November 28, 2010, 04:03:55 pm »
9999, nothing else.

Just kidding, it depends of the game. In early Illusiat games and ROL series it can be stuff such as CharLV^2/2+randInt(1,LV) or CharLV^3/EnemyLV+randInt(1,LV*2), since almost everything is dependent on your level. Then there can be things such as weapon/armor affecting your stats or magic. In that case a magic formula might also add damage multiplying and in case of elemental properties as well.

Illusiat 13 damage/healing formulas are the following:

Cure=     int(20(MAG/9)(5*MLV
ATK SPELL=int(50(MAG/9)(5*MLV))/DEF*ELEM
REGULAR ATK=int((randint(0,9)=/=0)*ATK*LV/DEF

MLV is the level of that magic attack. It goes from 1 to 9. MAG power could go up to 1998.

Note that multiplication/division-based formulas can lead to extreme damage variations, though. This can pose problems in Axe RPGs, where damage is capped to 65536. For example, in Illusiat 13, a maxed out character regular attack power with an Atlas Ring equiped vs an enemy with 1 defense point would deal 509490 damage points. (Keep in mind that game had a damage cap of 99999, something that wouldn't be possible in Axe)

Cool. Would you mind if I used those formulas for Sky's Story? I'll credit you as necessary.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [RPG] What damage formulas do you use?
« Reply #9 on: November 28, 2010, 11:59:13 pm »
No problem, just make sure to be careful if you ever use them in Axe. In Axe, I think formulas involving substractions rather than divisions might be better, but the issue is dealing with negative damage and preventing most weak attacks from doing 0-1 damage on your char if he's overleveled.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)