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

Potion Question


JadeCurt1ss
 Share

Recommended Posts

In modHandledata Server-Side, I changed the potion formula from

> Call SetPlayerHP(Index, GetPlayerHP(Index) + Item(Player(Index).Char(CharNum).Inv(InvNum).num).Data1)

to this

> Call SetPlayerHP(Index, GetPlayerHP(Index) + Item(Player(Index).Char(CharNum).Inv(InvNum).num).Data1) /100) * GetPlayerMaxHP(index)

But I kept getting an "Expected: end of  statement." Compile Error
The theory behind this is to turn the vital mod into a percentage of HP restored. So say I put 25 as the vital mod, the game would divide that by 100, giving me .25, and then multiply that by the Player's max HP, giving me a number = to 25% of the Player's max health, and restoring them by it.
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...