Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

EO 3.0 Combat Formula?


sebacame1
 Share

Recommended Posts

I searched in the forum and i couldn't find what the default combat formulas were like and as jcsnider said "they are lacking to say the least" i am quite intrigued about how the actually are so if anyone knows what the are like i would really appreciate it.
Link to comment
Share on other sites

Thanks Matt

i found thisĀ 

>! ```
>! Function GetPlayerMaxVital(ByVal index As Long, ByVal Vital As Vitals) As Long
If index > MAX_PLAYERS Then Exit Function
Select Case Vital
Case HP
Select Case GetPlayerClass(index)
Case 1 ' Warrior
GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 15 + 150
Case 2 ' Mage
GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 5 + 65
Case Else ' Anything else - Warrior by default
GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 15 + 150
End Select
Case MP
Select Case GetPlayerClass(index)
Case 1 ' Warrior
GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Intelligence) / 2)) * 5 + 25
Case 2 ' Mage
GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Intelligence) / 2)) * 30 + 85
Case Else ' Anything else - Warrior by default
GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Intelligence) / 2)) * 5 + 25
End Select
End Select
End Function
>! ```

and thats only the basics so then if i want to make for example a rogue i should not only change the initial stats but i must change the rogue formula too? because of the "* x + x" part
Link to comment
Share on other sites

Well, this code is for "GetPlayerMaxVital". Vitals are health and mana, so this has very little to do with serious combat. If you want to change the max health or mana a player can have, then you can change the code in this function to make it so.

To change the formula for damage and blocking, look for the function GetPlayerDamage and CanPlayerBlock
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...