Placed Effect to PC

I have created a placed effect.

What I want to do is have an item that the player activates to apply the placed effect to the player character.

Can anyone help me with this scripting?

Thanks in advanced!

A placed effect object – OBJECT_TYPE_PLACED_EFFECT – is an object that a SEF is applied to. But a SEF is applied to a creature – OBJECT_TYPE_CREATURE – sort of like so →

string sBarSef = GetLocalString(oCreature, "HPBARSEF");
effect eBar = EffectNWN2SpecialEffectFile(sBarSef);
eBar = SupernaturalEffect(eBar); // do not dispel or rest-off
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eBar, oCreature);

(from Lance’s HP-bars)

and/or removed with →

RemoveSEFFromObject(oCreature, sBarSef);

So … you’d probably want an item that has itemproperty Activation, and write a tag-based script that applies the SEF …


Thank you! Thank you! Thank you! Thank you! Thank you!
That helped me greatly!

1 Like