• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Don't understand math formula

Status
Not open for further replies.
Level 18
Joined
Aug 23, 2008
Messages
2,319
I got these formula's from a site to calculate the damage deals with certain action.


Example 1:
Base = Atk Pwr - Target's Defence
Bonus = Str ... [(Lv + Str) / 8] + Str
Damage = Base * Bonus

Example 2:
Base = Atk Pwr - Target's Defence
Bonus = 1 ... [(Lv + Str) / 8] + Str - 1
Damage = Base * Bonus

Example 3:
Base = Atk Pwr - Target's Defence
Bonus = [(Str + Spd) / 2] ... [(Lv + Str) / 8] + [(Str + Spd) / 2]
Damage = Base * Bonus


What the hell are those part before the ... supposed to mean? (These parts are 'Str', '1' and '[(Str + Spd) / 2]' in these 3 examples) Or what's the ... itself supposed to mean?
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
That's not what I meant. I know what they're supposed to be, but the problem is: Why is that part separated from the second part with a ... ? How am I supposed to put those formula's into my game?

And no: It's not because the lines are too long to fit the page and it automatically shortens the lines...
 
Level 34
Joined
Jul 4, 2007
Messages
5,552
450px-Principia_Mathematica_theorem_54-43.png


Here you go.


Now, is your problem solved.
 
Status
Not open for further replies.
Top