Page 1 of 1

NPC Statues ?

Posted: Mon Aug 18, 2003 7:30 pm
by JollyOrc
Hi!

I want to make statues out of NPCs and animals.

this kinda works, but has a drawback: The statue keeps fidgeting, and also turns if spoken to.

Code: Select all

effect eCut = EffectCutsceneDominated();
effect eVFX = EffectVisualEffect(VFX_DUR_PROT_GREATER_STONESKIN);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eVFX, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eCut, OBJECT_SELF);
so obviously it is undesireable.

Any ideas to stop the statues from moving ? I hear that SoU brings that new spell called flesh to stone. Can I apply it's effects somehow ?

Posted: Mon Aug 18, 2003 7:33 pm
by Silk
The SOU OC has tons of "living" statues that don't fidget or move...

Posted: Mon Aug 18, 2003 7:35 pm
by JollyOrc
Silk wrote:The SOU OC has tons of "living" statues that don't fidget or move...
I take that as a hint to look at the files in my SoU folder....

Thanks for the quick answer, let's hope I find my way around there.

edit: ok, I admit I'm dumb if someone tells me how to get into these files.

Or just how to apply that spell effect.

Posted: Mon Aug 18, 2003 8:13 pm
by JollyOrc
how to browse throuch the .bif files: NWExplorer
How to find the relevant parts in the hundreds of scrits: grep or textpad
How to get flesh to stone applied to a creature:

Code: Select all

    int nSpell = SPELL_FLESH_TO_STONE;
    AssignCommand(OBJECT_SELF,
        ActionCastSpellAtObject(nSpell,OBJECT_SELF,METAMAGIC_NONE,TRUE,
                                0,PROJECTILE_PATH_TYPE_DEFAULT,TRUE));
BUT THAT DAMNED DWARF STILL MOVES AND FIDGETS !

:-) any help ?

Posted: Mon Aug 18, 2003 8:37 pm
by Aloro
I've been meaning to play around with this, but haven't had time yet.

As I recall, there is a way to use EffectPetrify() to make statues that do not necessarily have the Stoneskin effect.

EDIT - I was trying to remember how I heard this was done... I think they used EffectParalyze() instead of EffectPetrify(). Petrify works fine, but always applies the stoneskin effect, I believe. If you want e.g. a wood statue, you'd use EffectParalyze and add a barkskin EffectVisualEffect().

- Aloro

Posted: Mon Aug 18, 2003 9:07 pm
by Actually
Last time I pawed through the NWN Builders Forums, there was NO scripted way to make NPC's stop from turning their heads toward any noise they perceive.

None, nadda, zilch.

Flesh to Stone is yer best bet.

Bye Now,
Jerry Cornelius - Kein.

Posted: Mon Aug 18, 2003 9:19 pm
by Aloro
Flesh to Stone almost certainly uses EffectPetrify() or EffectParalyze() in the spell script. :)

- Aloro

Posted: Tue Aug 19, 2003 8:49 am
by JollyOrc
ok, we agree on using Flesh to Stone.

Back to my second question: How can I apply this to a NPC ?

Posted: Tue Aug 19, 2003 9:08 am
by _LuCkY_

Code: Select all

ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectPetrify(), OBJECT_SELF);
That's all, no need for the stoneskin either :-)

You should also check if the statue doesn't move on attacks of oppurtunities :-) That was a hard one to find when I tried it. Just start beating it with your hands by a level 1 non-monk.[/code]