16-09-2008, 10:12 PM
Go look at the function for GetPlayerMaxVital. It shows you how the MaxHP is calculated in the function. Sonire is just saying you need to take note of that because if you are going to change the players MaxHP to something else temporarily then you would have to change it back after wards, thus needing the calculation.
There are a couple ways you could do it. I think the easiest way (maybe not the best?) would just be to add a check in the function underneath Case HP.
So say,
Maybe create a temporary variable which you can just clear after?
There are a couple ways you could do it. I think the easiest way (maybe not the best?) would just be to add a check in the function underneath Case HP.
So say,
Code:
Case HP
If Whatever Then
GetPlayerMaxVital = Int(GetPlayerStat(Index, Stats.Strength) / 2) + (Player(Index).Char(CharNum).OrigStrength) * 2 + 5000
Else
GetPlayerMaxVital = Int(GetPlayerStat(Index, Stats.Strength) / 2) + (Player(Index).Char(CharNum).OrigStrength) * 2
End If
Maybe create a temporary variable which you can just clear after?