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.

[FILLED] Dexterity for DMG instead of Strength

My game takes place in modern times, and I was wondering if someone could make a script that would affect certain weapons or classes so your dexterity stat determines your damage instead of strength (right now it's setup so that the harder your pull the trigger the more damage you do, which makes no damn sense at all.)

If you could, it'd be cool if you could also do support for other stats like Agi or Int based damage instead of Str.

Thanks
 
Finally, figured it out. Thanks kyonides, you helped in ways you may not understand.

Here's the script, it's in game_battler 3 right after if hit_result == true:
[pastebin]88[/pastebin]
Is this code well-formed?
 

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