NPC Statues ?

Moderator: Event DM

Post Reply
User avatar
JollyOrc
Elder Sage
Posts: 3984
Joined: Fri Jan 17, 2003 11:41 am
Timezone: Europe, CE(S)T
Location: Germany
Contact:

NPC Statues ?

Post by JollyOrc » Mon Aug 18, 2003 7:30 pm

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 ?
User avatar
Silk
Co-Founder
Posts: 6662
Joined: Fri Sep 14, 2001 6:47 pm
Contact:

Post by Silk » Mon Aug 18, 2003 7:33 pm

The SOU OC has tons of "living" statues that don't fidget or move...
Silk

Member of the MadK@t lover's group.
User avatar
JollyOrc
Elder Sage
Posts: 3984
Joined: Fri Jan 17, 2003 11:41 am
Timezone: Europe, CE(S)T
Location: Germany
Contact:

Post by JollyOrc » Mon Aug 18, 2003 7:35 pm

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.
User avatar
JollyOrc
Elder Sage
Posts: 3984
Joined: Fri Jan 17, 2003 11:41 am
Timezone: Europe, CE(S)T
Location: Germany
Contact:

Post by JollyOrc » Mon Aug 18, 2003 8:13 pm

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 ?
User avatar
Aloro
Team Member; Retired with Honors
Posts: 12805
Joined: Sat Dec 28, 2002 5:11 am
Location: Rainbow's End
Contact:

Post by Aloro » Mon Aug 18, 2003 8:37 pm

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
Aleksandr Solzhenitsyn wrote:The meaning of earthly existence lies, not as we have grown used to thinking, in prosperity, but in the development of the soul.
Actually
Sage
Posts: 1823
Joined: Sat Dec 14, 2002 10:11 pm
Location: Red Zone: Cuba

Post by Actually » Mon Aug 18, 2003 9:07 pm

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.
User avatar
Aloro
Team Member; Retired with Honors
Posts: 12805
Joined: Sat Dec 28, 2002 5:11 am
Location: Rainbow's End
Contact:

Post by Aloro » Mon Aug 18, 2003 9:19 pm

Flesh to Stone almost certainly uses EffectPetrify() or EffectParalyze() in the spell script. :)

- Aloro
Aleksandr Solzhenitsyn wrote:The meaning of earthly existence lies, not as we have grown used to thinking, in prosperity, but in the development of the soul.
User avatar
JollyOrc
Elder Sage
Posts: 3984
Joined: Fri Jan 17, 2003 11:41 am
Timezone: Europe, CE(S)T
Location: Germany
Contact:

Post by JollyOrc » Tue Aug 19, 2003 8:49 am

ok, we agree on using Flesh to Stone.

Back to my second question: How can I apply this to a NPC ?
User avatar
_LuCkY_
Scholar of Fools
Posts: 476
Joined: Tue Apr 29, 2003 10:25 am
Location: Netherlands

Post by _LuCkY_ » Tue Aug 19, 2003 9:08 am

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]
Post Reply