From NWN Lexicon
Revision as of 17:15, 2 March 2021 by Jasperre (talk | contribs)
Jump to: navigation, search

Determines whether an object is flagged as plot.

int GetPlotFlag(
    object oTarget = OBJECT_SELF


The object to determine whether it is a plot. (Default: OBJECT_SELF)


Returns TRUE if oTarget is a plot object, otherwise FALSE.


A plot flag affects an item, placeable, or creature considerably. It is meant to protect the item, placeable, or creature from death or destruction. It also has an affect on the AI of a creature. A creature that is plot will not turn hostile against others, for instance. It will still attack those that it was hostile against at the time of becoming plot, though. Also, attacking a plot creature can actually cause it to strike back at you, and then your only solution is to run away and wait for the plot creature to exit combat mode. A plot object does not take any damage and plot items cannot be sold.

Almost every negative effect will not affect a plot creature, but positive and healing effects will work as normal. A comprehensive list of what effects affect a plot creature or placeable needs to be determined.

You need to remove the plot flag before DestroyObject will work.

An alternative for creatures to the plot flag is immortality which while it restricts some hostile effects including EffectDeath, the majority (and importantly EffectDamage) still work, with the creature not able to go under 1HP, allowing suitable "boss-talk" when the creature is defeated.



See Also





 author: Tom Cassiotis, editor: Lilac Soul