sebacame1 Posted May 16, 2014 Author Share Posted May 16, 2014 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 More sharing options...
Matt Posted May 16, 2014 Share Posted May 16, 2014 I don't know EO 3.0, but look for subs in modCombat called something along the lines of "NpcAttackPlayer", "PlayerAttackNpc" and "PlayerAttackPlayer". The code should be there. Link to comment Share on other sites More sharing options...
sebacame1 Posted May 16, 2014 Author Share Posted May 16, 2014 Thanks Matti 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 SelectEnd 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 More sharing options...
Matt Posted May 16, 2014 Share Posted May 16, 2014 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 More sharing options...
sebacame1 Posted May 16, 2014 Author Share Posted May 16, 2014 Yes you are right the only formulas which take classes as a case are the vitals one the other ones are fine. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now