<
>
 Thread (1 posts)
Yottabyte2.0  9/04/06 10:36:32 PM

Rank: 1/100 Rank: 1/100 Rank: 1/100 Rank: 1/100 Rank: 1/100

Novice Member

Joined: 9/04/06
Posts: 3

*This is my first post, just to let you know*

I've been working on an MMORPG, and I'm trying to come up with some stats-based functions for it. They are as follows:

Stamina-reduction formula(s)

Basic Attack Formula(s)

Accuracy/Evasion Formula(s)

In my game, stamina is a stat that functions as the players energy. Once all stamina is depleated, strenuous activities will start deducting from the players' health.

Anyway, I wan't to make three formulas that determine 3 things: Static Stamina Reduction, Running Stamina Reduction, and Speed of running acording to stamina reduction.

For static stamina reduction (I'll call it SSR for now) I want the following things:

-Stamina reduction is based on the weight of what a player's carrying. The heavier it is, the more frequently his/her stamina goes down.

-The higher a player's strenght is, the less their stamina goes down.

I tried to make a formula something like this: SSR=((total weight/time duration) - strength) - stamina. I don't think it'd work, but it's the best I could come up with (I suck at math)

For Running Stamina Reduction (RSR), it would be very similar to SSR, but only with the added variable of running. I came up with this formula RSR=Distance[AnimationCylces] * ((total weight/time duration) - strength) - stamina. Again, I highly doubt it'll work.

For Speed of running acording to stamina reduction (SoRAtS) I want the speed of the player to be determined by 1. their total weight and 2. their stamina. I haven't a clue as to what kind of formula this'll take

For a Basic Attack Formula (BAF) the base variables will be strenght, defence, and health (obviously). Here's a formula that I came up with: Attack = (PlayerStrenght - EnemyDefence) - EnemyHealth. If EnemyDefence > PlayerStrenght then Attack = 0. If EnemyDefence = PlayerStrength then Attack = 0. Would a formula like this work?

And lastly, for the Accuracy/Evasion Formula (AEF) this should determine wether or not a player's attack to an enemy actually hits it or not. I honestly haven't a clue as to what kind of formula this could use.

Anyway, if you could, could any of you help me with my problem(s)? I would really appreciate it! Thanks

Project Leader for Elements of Adventure

Main Site: http://www.freewebs.com/elements_of_adventure/

Forums: http://eoa.myfreeforum.org/index.php