effect

From NWN Lexicon
Jump to: navigation, search

Each effect that you're allowed to place on an object actually has a constructor within the scripting language that you are then alllowed to use in ApplyEffectToObject().

For your own sanity it is worth using TagEffect to make an effect uniquely identifiable later unless it is a temporary or spell script effect.

Example

effect eConPenalty = EffectAbilityDecrease(ABILITY_CONSTITUTION, 1);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eConPenalty, oTargetPC);

See Also

functions:

Effect Functions

constants:

EFFECT_TYPE_* Constants