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

GetSkillCap

Returns the skill cap for the specified skill.

In Pascal, the skill is identified by name (string). In Python, by skill index (integer).

Returns 0 if the character is disconnected.

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

В Pascal навык задаётся именем (строка). В Python — индексом (целое число).

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

Pascal

function GetSkillCap(SkillName: String): Double;

Python

def GetSkillCap(SkillID: int) -> float: ...

Pascal Example

begin
  if GetSkillCurrentValue('Inscription') >= GetSkillCap('Inscription') then
  begin
    AddToSystemJournal('Inscription cap reached: ' +
      Format('%.1f', [GetSkillCap('Inscription')]));
  end;
end.

Python Example

if GetSkillCurrentValue(23) >= GetSkillCap(23):
    AddToSystemJournal(f'Inscription cap reached: {GetSkillCap(23):.1f}')

See Also

GetSkillValue, GetSkillCurrentValue