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

Armor

Returns the character’s physical armor value (the “Armor” property displayed in the character status).

Returns 0 if the character is not connected to the UO server.

Возвращает значение физической брони персонажа (свойство «Armor», отображаемое в статусе персонажа).

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

Pascal

function Armor: SmallInt;

Python

def Armor() -> int: ...

Pascal Example

begin
  AddToSystemJournal('Current armor: ' + IntToStr(Armor));
  if Armor < 30 then
    AddToSystemJournal('Warning: low armor value!');
end.

Python Example

AddToSystemJournal(f'Current armor: {Armor()}')
if Armor() < 30:
    AddToSystemJournal('Warning: low armor value!')