Table of Contents

Method DecreaseAbility

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

DecreaseAbility(IPAbility, int)

Decreases an ability score. Modifier must be a positive integer between 1 and 10 (1 = -1).

public static ItemProperty DecreaseAbility(IPAbility ability, int penalty)

Parameters

ability IPAbility

The ability.

penalty int

The penalty amount (1–10, interpreted as negative).

Returns

ItemProperty

The created item property.