effect

From NWN Lexicon
Revision as of 17:39, 17 June 2020 by Jasperre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to 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