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

GetDex

Returns the Dexterity stat of the mobile with ObjID.

Unlike Dex (which returns the current character’s own dexterity), this method can query any mobile’s stats.

Возвращает характеристику Ловкость (Dexterity) мобайла с ObjID.

В отличие от Dex (который возвращает ловкость текущего персонажа), этот метод может запрашивать статы любого мобайла.

Pascal

function GetDex(ObjID: Cardinal): Integer;

Parameters:

  • ObjID — ID of the mobile.

Python

def GetDex(ObjID: int) -> int: ...

Pascal Example

begin
  while GetDex(Self) < 50 do
  begin
    // use skill for dex increasing
    Wait(5000);
  end;
end.

Python Example

while GetDex(Self()) < 50:
    Wait(5000)

See Also

GetStr, GetInt, RequestStats