Experience Codes

Hey guys! 🙂

I'm using HUD Maker Ultra and I need to know the current XP, current level XP and next level XP codes for MZ so I can make an experience gauge.

These codes from MV doesn't seem to work:

currentValue: ${$gameParty.members()[0].currentExp() - $gameParty.members()[0].currentLevelExp()}
maxValue: ${$gameParty.members()[0].nextLevelExp() - $gameParty.members()[0].currentLevelExp()}
I found someone with the same problem on the Hud Maker Ultra Pro sales page on itch.io and a user posted the solution, here it is!

Gauge Value:
return $gameParty.members()[0].currentExp() - $gameParty.members()[0].currentLevelExp();

Gauge Max:
return $gameParty.members()[0].nextLevelExp() - $gameParty.members()[0].currentLevelExp();

Original thread: https://forums.rpgmakerweb.com/threads/experience-codes.138483/