Experience Progress bar Issue - Please help


I am using Ascent Combat Framework, still awaiting reply from developer. I am having an issue of my progress bar setting properly. It seems to be Int-to-float issue. Text is updating properly, progress bar is not! Any ideas what I can do to get around this?

Function “Get Current Exp” is hard coded in the plugin as an integer. What can I do to get around this to make it read properly?

You “Set Percent” to actual EXP Value = if EXP = 9999 - so does the Percentage value and obviously it’s not a value you can use as 0-100% as it’s exceeding the max (100%) value

You need just a bit of math here:
Current EXP / Max EXP = % you need

Just make sure you change the Int to Float before you divide

1 Like

And if it should be tricky like in one System I am using - the EXP to Next Level isn’t in range 0-Max, it contains 3 values:

Current XP (Level)
Current XP (Total)
Next Level XP

Which forced me to use this calculation:

Total XP - (Next Level XP - Current XP)

That’s because ‘Current XP’ isn’t XP I earned so far but “What’s the XP needed to be in this Level”

And it looks like this:

Thank You!! It works perfectly! I have another issue now, how do I update the player level as I level up?

I level up everytime my exp = current exp, but my text never updates and I tried all I could…

Are you sure it’s being triggered?

You can place f.ex. a PrintString to show a debug text to make sure if it all happens and instead showing ‘Hello’ connect the ToText Return Value to it to show what it returns

Also when you Level Up - do you want to start from 0 Exp or rather keep the value that exceeds Max Exp Needed to Level Up and add to the Next Level?

F.ex. - You need 100 xp to level up, you have 90 and you just got 20 more so total you have 110 xp - it’s 10 more than necessary - so next Level should already have this value

The calculation is simple for that one too :wink:

Actual Exp - Exp Needed to Level Up = Exp over
110 - 100 = 10

And this is the value you should add to the exp after leveling up :slight_smile:

Let me know if the OnCharacterLevelUp gets triggered, also - is that Multiplayer?