Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Could I...
#23
Anthony Wrote:I still don't see what you are trying to set your HP value to?

Code:
Function GetPlayerMaxVital(ByVal Index As Long, ByVal Vital As Vitals) As Long

There are only an Index and a Vital as Vitals in the function. Yours is looking to select something else as well. If you want to set your players hit points to whatever your max hit points are plus 5000 it should be like this.

Code:
Call SetPlayerVital(Index, Vitals.HP, GetPlayerMaxVital(Index, Vitals.HP) + 5000)

Do you understand how that works? You cannot change the MaxHP value in a default MS because it is calculated from your players stats and it's classes stats.

That's exactly what I'm trying to do. I want to set the player's max HP + 5000. And I think I get how that works...So the code you just showed me, is correct? I'll have to try it later when I get back home from school.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)