Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Could I...
#28
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,

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?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)