Jump to content
• Advertisement

# 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

##### Share on other sites
Advertisement

Out of the 65 views so far, not 1 time has someone replied? Can't someone just help me?

#### Share this post

##### Share on other sites

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

##### 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

##### 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

##### Share on other sites

• Advertisement
• Advertisement

• ### Popular Contributors

1. 1
2. 2
Rutin
19
3. 3
4. 4
5. 5
frob
13
• Advertisement

• 9
• 15
• 10
• 9
• 17
• ### Forum Statistics

• Total Topics
632602
• Total Posts
3007363

×

## 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!