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

PetsMax

Returns the maximum number of pets/followers the character can have.

In Python, this method is named MaxPets.

Returns 0 if the character is not connected.

Возвращает максимальное количество петов/фолловеров, которых может иметь персонаж.

В Python метод называется MaxPets.

Возвращает 0, если персонаж не подключён.

Pascal

function PetsMax: Byte;

Python

def MaxPets() -> int: ...

Pascal Example

begin
  AddToSystemJournal('Pets: ' + IntToStr(PetsCurrent) + ' / ' + IntToStr(PetsMax));
  if PetsCurrent >= PetsMax then
    AddToSystemJournal('Cannot tame more pets');
end.

Python Example

AddToSystemJournal(f'Pets: {PetsCurrent()} / {MaxPets()}')
if PetsCurrent() >= MaxPets():
    AddToSystemJournal('Cannot tame more pets')

See Also

PetsCurrent, ExtendedInfo