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

Mana

Returns the character’s current mana points.

For checking mana of other мобайлов, use GetMana.

Returns 0 if the character is not connected.

Возвращает текущее количество маны персонажа.

Для проверки маны других мобайлов используйте GetMana.

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

Pascal

function Mana: Integer;

Python

def Mana() -> int: ...

Pascal Example

begin
  AddToSystemJournal('Mana: ' + IntToStr(Mana) + ' / ' + IntToStr(MaxMana));
  if Mana < 20 then
    AddToSystemJournal('Low mana!');
end.

Python Example

AddToSystemJournal(f'Mana: {Mana()} / {MaxMana()}')
if Mana() < 20:
    AddToSystemJournal('Low mana!')

See Also

MaxMana, GetMana