EffectTrueSeeing()
Returns an effect of True Seeing.
Description
Creates a True Seeing effect which can then be applied to a creature target. It is identical to the item property "True Seeing".
True seeing seems to see through (as if they never had it):
- Hiding creatures stealth
- EffectInvisibility (Improved and normal)
- EffectSanctuary
- EffectDarkness (acts like a kind of "Blindness") - although when cast it will just...remove it, removing any miss chance you have from others attacking you! This may be a bug however.
However it only partially works against EffectEthereal used for the Greater Sanctuary spell, since:
- You can see the target as if they were not invisible
- You cannot cast a spell directly on them
- You cannot attack them
- You can indirectly attack them
This will break the AI at times, trying to cast single-target spells on an ethereal person will just get them standing there.
The target this effect is applied to must be a creature for it to work. This effect should not be applied instantly, only temporarily or permanently.
Remarks
This is vastly more powerful, and also not to D&D rules. It can see naturally hidden people (probably to make up for the fact there are no penalties for hiding in the light or in full view in NwN), however it cannot see Ethereal people! (while the D&D spell can).
Effect functions are Constructors, which are special methods that help construct effect "objects". You can declare and link effects, and apply them using an ApplyEffectToObject() Command. Once applied, each effect can be got separately via. looping valid effects on the target (GetFirst/NextEffect()). See the Effect Tutorial for more details.
Effect Breakdown
There appears to be no integers or stored settings for this effect. The main information on how it works and interacts with other effects is above in the description.
Known Bugs
Applying EffectTrueSeeing seems to remove EffectDarkness instead of suppressing it when used outside of the Darkness spell AOE object (ie just applying EffectDarkness then applying and removing EffectTrueSeeing). When the spell AOE is involved it also bugs if you remove the True Seeing while standing in the AOE - your screen goes black again (yay!) but the effect is...not available to scripts and doesn't apply an effect icon. This means you are perpetually trapped in darkness.
Version
1.64
Example
void main()
{
// This is the Object to apply the effect to.
object oTarget = OBJECT_SELF;
// Create the effect to apply
effect eTrueseeing = EffectTrueSeeing();
// Create the visual portion of the effect. This is instantly
// applied and not persistent with whether or not we have the
// above effect.
effect eVis = EffectVisualEffect(VFX_IMP_MAGICAL_VISION);
// Apply the visual effect to the target
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
// Apply the effect to the object
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eTrueseeing, oTarget);
}
See Also
functions: |
author: Brett Lathrope, editor: Jasperre, additional contributor(s): Jasperre