Samarium
Unfortunately, it does not work as expected.
I pasted your code and replaced event
with player
in onJoinMap
hook and still I can see the max hp as 741. Exactly 100/741
The same for monsters (RpgEvent)
Edit: I moved code to onConnected
for player and it works, but for RpgEvent::onInit()
it still does not work
Edit 2: Hp after level up also is not updated to the GUI, it is always 100
:
player.addParameter(Presets.MAXHP, {
start: 100,
end: 10000,
});