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, если персонаж не подключён.
function GetSkillCap(SkillName: String): Double;
def GetSkillCap(SkillID: int) -> float: ...
begin
if GetSkillCurrentValue('Inscription') >= GetSkillCap('Inscription') then
begin
AddToSystemJournal('Inscription cap reached: ' +
Format('%.1f', [GetSkillCap('Inscription')]));
end;
end.
if GetSkillCurrentValue(23) >= GetSkillCap(23):
AddToSystemJournal(f'Inscription cap reached: {GetSkillCap(23):.1f}')