Zzbrandon Posted September 23, 2012 Author Share Posted September 23, 2012 ```Select Case VitalCase HPSelect Case GetPlayerClass(Index)Case 1 ' Noob WarriorGetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150Vital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150If Vital < 100 ThenGetPlayerMaxVital = VitalElseGetPlayerMaxVital = 100End IfCase 2 ' Troll WarriorGetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 5 + 65Vital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150If Vital < 100 ThenGetPlayerMaxVital = VitalElseGetPlayerMaxVital = 100End IfCase Else ' Anything else - WarriorGetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150Vital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150If Vital < 100 ThenGetPlayerMaxVital = VitalElseGetPlayerMaxVital = 100End IfEnd Select```Ok so thats the code that cap off players health at 100 but the issue is I want it so armour can add health or extra MP, I dont want to reactivate so your health go up by each level. This may sound stupid but so what I just need help. Link to comment Share on other sites More sharing options...
aaaron Posted September 23, 2012 Share Posted September 23, 2012 You should really learn to use the "code" tag. Link to comment Share on other sites More sharing options...
Zzbrandon Posted September 23, 2012 Author Share Posted September 23, 2012 Ok so thank you for fixing "Code tag" that not my problem though. Link to comment Share on other sites More sharing options...
Zzbrandon Posted September 23, 2012 Author Share Posted September 23, 2012 Thanks AAron for your wisdom ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) 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