Firestar Posted October 2, 2008 Author Share Posted October 2, 2008 Not sure where this'd go, read the title.Anyway, whenever I use a script to edit the player's regular HP, they lose whatever maximum HP bonuses their equipment gives them.For example, a player has 10,000 HP and equipment gives them 5000 extra, 15,000 HP. But if I used a SCRIPT to bring their HP to 1, instead of being 1/15,000, it's 1/10,000 temporarily.Glitch, or am I doing something wrong?Version 2.7 of Eclipse Evolution, by the way. Very glitchy D: Link to comment Share on other sites More sharing options...
Havear Posted October 7, 2008 Share Posted October 7, 2008 Are you using the set command or are you putting current HP into and integer and than add the health points to that? Link to comment Share on other sites More sharing options...
Firestar Posted October 7, 2008 Author Share Posted October 7, 2008 I'm using Call SetPlayerHP(Index,GetPlayerMaxHP(Index)) when using a healing NPC, and SetPlayerHP(Index,GetPlayerMaxHP(Index)/200) for a scripted tile. Both do what I said above. Link to comment Share on other sites More sharing options...
The Oracle Posted October 7, 2008 Share Posted October 7, 2008 how is 2.7 glitchy? i think that something would have to happen to your script to find the hp. but don't ask me, i'm not a scripter. Link to comment Share on other sites More sharing options...
Havear Posted October 8, 2008 Share Posted October 8, 2008 Try this in the ScriptedTile sub``` Case 1 Dim HP HP = Int(GetPlayerHP(index) + 50) Call SetPlayerHP(index, HP) Call sendHp(index) Exit Sub```Modify 50 to what number you need. Or I am addressing the wrong problem? 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