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

I capped off Health and OMG!!!


Zzbrandon
 Share

Recommended Posts

```
Select Case Vital

Case HP

Select Case GetPlayerClass(Index)

Case 1 ' Noob Warrior

GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150

Vital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150

If Vital < 100 Then

GetPlayerMaxVital = Vital

Else

GetPlayerMaxVital = 100

End If

Case 2 ' Troll Warrior

GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 5 + 65

Vital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150

If Vital < 100 Then

GetPlayerMaxVital = Vital

Else

GetPlayerMaxVital = 100

End If

Case Else ' Anything else - Warrior

GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150

Vital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150

If Vital < 100 Then

GetPlayerMaxVital = Vital

Else

GetPlayerMaxVital = 100

End If

End 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

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...