Jump to content
  • Advertisement
Sign in to follow this  
Twisttid

Character Attribute Formulas

This topic is 1528 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So, i'm making an MMORPG but I'm having trouble on the formulas on how each thing works, for an example with Strength I want to create a formula on how much damage is given depending on:

 

- Character Strength

- Weapon Power

- Target's Defence

 

Does anyone know somewhere I can get a detailed walkthrough on working these things out?

Share this post


Link to post
Share on other sites
Advertisement

You're getting no responses (probably) because you're asking for a reference to a detailed walkthrough that probably doesn't exist, as your subject is very specific and is relatively simple mathwise. A better approach for general topic posting in future is to describe a problem (as you have) and ask for any help, not necessarily a reference.

 

That said, approaches could be to:

 

1. add the attributes and use the sum.

2. multiply the attributes and use the product.

3. multiply each attribute by some factor and sum the results of those products.

 

Perhaps you can provide some additional information if one of those approaches doesn't fit the situation.

Edited by Buckeye

Share this post


Link to post
Share on other sites
If strength of a character is given a value 3, and weapon power is given a strength of -4 (negative because it subtracts power) then the resulting power of the character after the weapon hits it is -1.

Now say the character had a shield that has a +4 defense. This now gives the character +7 power. So when the weapon hits, the character is still at +3.

You could classify a strength of +3 as normal. Any strength greater is seen as extra defense.

Strength of zero is seen as dead or incapacitated. Negative strength can be whatever you desire.

That is a basic system/formula. You could also use factors as Buckeye suggested.

Share this post


Link to post
Share on other sites
One more thing. Inside of the game loop, you can gradually increase such health using a counter. If a collision between two objects happens:

health = health +/- factor

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!