Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GetMaxHP

Returns character property MaxHP (HP Maximum)

Pascal Syntax:

function GetMaxHP(ObjID : Cardinal) : Integer;

Pascal Example:

if GetHP(Self) < GetMaxHP(Self) then
begin
  WaitTargetSelf;
  UseObject(bandage_type);
end;

Python Syntax:

def GetMaxHP(ObjID): --> int