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.

Strength as Attack Power

I'm not sure if I'm being so specific, but... If you have ever used Rpg Maker 2000 or 2k3, you know that without a weapon equipped you still have attack points. I need a script that transfers the strength into attack points, so that if you have a weapon unequipped, you will still have attack points. Does anyone understand?
 
All you have to do is modify the damage formula.

The lines in Game_Battler 3

Code:
# Calculate basic damage
      atk = [attacker.atk - self.pdef / 2, 0].max
      self.damage = atk * (20 + attacker.str) / 20

Now change attacker.atk to attacker.str and change self.damage formula to whatever fits your needs.
 
Thanks for the help. It works perfectly. If I get any error messages, I guess I'll post them.

EDIT: Can someone edit / make a script so in the equip screen it shows the strength power instead of attack? I'd really appreciate it.
 

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