Blockland Forums > Modification Help
Raise Max HP
Jorgur:
Can a player's maximum HP (maxDamage) be changed ingame?
Destiny/Zack0Wack0:
No, but you can fake it by packaging the damage system.
Jorgur:
Please explain.
Gadgethm:
What destiny means is:
--- Code: ---package lololol
{
function player::damage(%this, %obj, %pos, %damage, %damageType)
{
%damage = %damage/2;
Parent::damage(%this, %obj, %pos, %damage, %damageType);
}
};
activatepackage(lololol);
--- End code ---
I have no idea how right that is, it's probably full of syntax errors, but from what I can tell, that should cause all damage to be reduced by half, effectively doubling player health.
Destiny/Zack0Wack0:
%damage = %damage / (%player.fakeMaxHP / 100);
will work