UseVirtue
Activates the specified virtue.
VirtueName (Pascal) — name of the virtue as a string (e.g., 'Honor', 'Valor', 'Compassion'). If the name is not recognized, an error is logged.
VirtueID (Python) — virtue index as an integer. Also accepts Virtue enum values.
Note the parameter difference: Pascal uses virtue name (String), Python uses virtue index (int) or Virtue enum.
On official shards, this triggers a virtue-specific gump via the Virtues system.
Активирует указанную добродетель.
VirtueName (Pascal) — имя добродетели строкой (например, 'Honor', 'Valor', 'Compassion'). Если имя не распознано, логируется ошибка.
VirtueID (Python) — индекс добродетели целым числом. Также принимает значения перечисления Virtue.
Обратите внимание на различие: Pascal использует имя (String), Python — индекс (int) или перечисление Virtue.
На официальных шардах вызывает гамп системы добродетелей.
procedure UseVirtue(VirtueName: String);
def UseVirtue(VirtueID: int) -> None: ...
begin
UseVirtue('Honor');
WaitForTarget(3000);
if TargetID > 0 then
TargetToObject(Self);
end.
UseVirtue(Virtue.Honor)
WaitForTarget(3000)
if TargetID() > 0:
TargetToObject(Self())