View Single Post
Old 10-29-2008, 08:58 PM   #8
MrBohn
Hero Slime
 
MrBohn's Avatar
 

In-Game Name: MrBohn
Current Level: 2X
Server: Apoline
Posts: 10
MrBohn is on a distinguished road
Originally Posted by JamieBear View Post
Haha, My jaw dropped before i read the joke part.

I guess we'd have to ask the programmers =
Well, I am new to the game but being a computer programmer I would have to say that I understand it as this. Damage is the base damage you could do, without taking into account their evasion, defense, and other factors. So even though you have 700-800 damage and they have 300 def there are other factors like evasion acting for them that lowers the damage. Also the code for damage probably includes a random number generator between 700 and 800 assigning the value to the variable damage. Then the hp of the mob is taken down incrementally and is resaved as a lower count variable.

It would look something like this:

def damage(base damage - evasion%(etc))

def defense(base def + any defensive add-ons)

If damage > defense Then
damage - defense = New Hit Point Value
else
New Hit Point Value = Old Hit Point Value
End If

Ofcourse this is horrible programming on my part I just don't have the time to write what the actual program would look like and I used Visual Basic Syntax to write it. LOL.
__________________



"Life is to serious to be taken seriously."
MrBohn is offline