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

Stam

Returns the current stamina of the character.

This is a shorthand property equivalent to GetStam.

Returns 0 if the character is not connected.

Возвращает текущую выносливость (stamina) персонажа.

Это сокращённое свойство, эквивалентное GetStam.

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

Pascal

function Stam: Integer;

Python

def Stam() -> int: ...

Pascal Example

begin
  AddToSystemJournal('Stamina: ' + IntToStr(Stam) + '/' + IntToStr(MaxStam));
  if Stam < 10 then
    AddToSystemJournal('Very low stamina!');
end.

Python Example

AddToSystemJournal(f'Stamina: {Stam()}/{MaxStam()}')
if Stam() < 10:
    AddToSystemJournal('Very low stamina!')

See Also

MaxStam, GetStam