JadeCurt1ss Posted October 1, 2008 Author Share Posted October 1, 2008 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 ErrorThe 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 More sharing options...
Robin Posted October 1, 2008 Share Posted October 1, 2008 Close all your brackets ;D Link to comment Share on other sites More sharing options...
JadeCurt1ss Posted October 1, 2008 Author Share Posted October 1, 2008 Brackets yes, but I had the order of operations wrong. =[ Back to calculus hw for me…> Call SetPlayerHP(Index, GetPlayerHP(Index) + GetPlayerMaxHP(Index) * (Item(Player(Index).Char(CharNum).Inv(InvNum).num).Data1) / 100)That's how it should have been. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now