Table of Contents

Method AddConstraint

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

AddConstraint(string, float)

Adds a constraint to the system.
You cannot multiply or divide variables and expressions with each other.
Doing so will result in a error when attempting to add the constraint.
(You can, of course, multiply or divide by constants).

public void AddConstraint(string constraintExpression, float strength = 1.001001E+09)

Parameters

constraintExpression string

The constraint expression. Needs to be a valid comparison equation, one of: >=, ==, <=.

strength float

A value >= CASSOWARY_STRENGTH_WEAK && <= CASSOWARY_STRENGTH_REQUIRED.