Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Where do I fix the weapon formulas?

:O I wanted to fix the weapon formulas for my game. I wanted a more general, and easy damage formula, for example...

weapon.atk + str - pdef = damage

skl.efct + int - mdef = damage

;O Is there a place where I can change it and stuff?

I also have another question, how does "Effect Rating" and "Attack" effect the damage in my skills?
 
^.^ Really? Thanks. I'm hopeless with scripting...

Well... here goes.

For basic physical damage (using the "Attack" command):
Weapon ATK + STR - Target's Physical Defence = Damage

For physical skills:
Skill ATK power + STR - Target's Physical Defence = Damage

For magical skills:
Skill ATK power + INT - Target's Magical Defence = Damage

;O Are those the correct formulas? :O
 

Abbey

Member

In Game_Battler 3, replace:
Code:
atk = [attacker.atk - self.pdef / 2, 0].max
self.damage = atk * (20 + attacker.str) / 20

with this:
Code:
atk = [attacker.atk + attacker.str - self.pdef, 0].max
self.damage = atk

I can't do the skills, yet, but that's obviously for the actual attack.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top