GetGumpsCount
Returns amount of active gumps for current character.
Returns 0 if character disconnected, or no gumps.
NB: Usually used in scripts like “GetGumpsCount - 1” as param for script methods, which have param GumpIndex, means last gump in gumps list.
Pascal Syntax:
function GetGumpsCount() : Cardinal;
Pascal Example:
If IsGump then
if IsGumpCanBeClosed(GetGumpsCount-1) then
CloseSimpleGump(GetGumpsCount-1);
Python Syntax:
def GetGumpsCount(): --> int