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

FindQuantity

Returns the stack size (quantity) of the last item found by FindType, FindTypeEx, or FindTypesArrayEx.

Returns 0 if no objects were found or the character is disconnected. Returns 1 if the found object is not a stack.

Возвращает размер стека (количество) последнего найденного предмета.

Возвращает 0, если ничего не найдено или персонаж не подключён. Возвращает 1, если найденный объект не является стеком.

Pascal

function FindQuantity: Integer;

Python

def FindQuantity() -> int: ...

Pascal Example

begin
  FindType($0F7B, Backpack);  // Blood Moss
  AddToSystemJournal('Last BM stack size: ' + IntToStr(FindQuantity));
end.

Python Example

FindType(0x0F7B, Backpack())
AddToSystemJournal(f'Last BM stack size: {FindQuantity()}')

See Also

FindTypeEx, FindCount, FindFullQuantity