#(cilpsthepu) XP math thing

8 messages · Page 1 of 1 (latest)

inland pine
#

I suck at math and I wanted to know how to make a custom XP system.
I have a XP flag on the player and every 100 XP your level goes up. I want to update the experience bar to show the correct percentage of XP to the next level. How can I achieve this?

waxen marshBOT
#

(cilpsthepu) XP math thing

waxen marshBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

chilly surge
#

!m fake_experience

open driftBOT
# chilly surge !m fake_experience

Shows the player a fake experience bar, with a number between 0.0 and 1.0 to specify how far along the bar is.
Use with no input value to reset to the player's normal experience.
Optionally, you can specify a fake experience level.
For example: - adjust <player> fake_experience:0.5|5

Object

PlayerTag

Input

ElementTag(Decimal)(|ElementTag(Number))

chilly surge
#

There's no math here besides dividing your 100xp by 100 to get it to a scale of 0.0 to 1.0

inland pine
#

Wow thanks, I didn’t know that existed.