Hello There!
Grab the current value of your XP and multiply with Percentage / 100 and add to your current value and set as current value…
pseudocode:
CurrentXP = CurrentXP + (CurrentXP * (Percentage / 100))
Hello There!
Grab the current value of your XP and multiply with Percentage / 100 and add to your current value and set as current value…
pseudocode:
CurrentXP = CurrentXP + (CurrentXP * (Percentage / 100))
Hi.
Here is what I currently have:
Instead of it being x2 of the previously needed XP, I’d like it to be 10%.
Thanks.
Thanks for replying, but I have no idea what that means. How do I multiply with a percentage?
AmphDev just means get your current XP so say 100, then to get the “needed XP” if you want it increased by 10% over current it would be
Current XP (100) + Current XP (100) x (Desired % increase (say 10)/100)
So it becomes [100+(10010/100)]= needed XP
So [100+(100.10)]
Which is 100+10
So needed becomes: 110 XP points
Just change the mutiply be 2 to 1.1. By using 1.1 it will result in the currently needed xp + 10%.