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

Luck

Returns the character’s current Luck value (from the extended status info).

Returns 0 if the character is not connected.

Возвращает текущее значение Удачи (Luck) персонажа (из расширенной информации о статусе).

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

Pascal

function Luck: Integer;

Python

def Luck() -> int: ...

Pascal Example

begin
  AddToSystemJournal('Luck: ' + IntToStr(Luck));
end.

Python Example

AddToSystemJournal(f'Luck: {Luck()}')

See Also

ExtendedInfo, Armor, Gold