Aller au contenu

Photo

RE: Help with Statue Script


  • Veuillez vous connecter pour répondre
13 réponses à ce sujet

#1
Pstemarie

Pstemarie
  • Members
  • 2 745 messages

I need a simple OnSpawn script that will freeze a creature in a certain animation pose and turn them into a statue. I need about a dozen of these and don't feel like making placeables since it might be possible to "revive" the statues under certain circumstances. I've tried the various statue scripts floating around, but can't seem to get anything other than the infamous "da Vinci" pose. Anyone got any ideas?



#2
meaglyn

meaglyn
  • Members
  • 808 messages

I fought with that a bit trying to make my tailor models. In that case I wanted to keep it in the da vinci pose.  But then I couldn't keep it there when I resized it for the particular PC... anyway, have you tried delaying the freeze a few seconds?  Freezing in the spawn path directly tends to stop it from even running the base standing animation.   I don't know if there is a way to freeze in any other animation. 



#3
leo_x

leo_x
  • Members
  • 223 messages

I tried something like this in the past and a DelayCommand works okay but there is a rather large caveat/problem as described in this thread: http://forum.bioware...ures/?p=7484402



#4
Pstemarie

Pstemarie
  • Members
  • 2 745 messages

Thanks for the link, Leo. After reading through that thread again, it looks like my "garden" of statues will be better implemented as placeables rather than petrified creatures - allowing me to avoid the glitches listed in the various posts throughout that thread.



#5
Fester Pot

Fester Pot
  • Members
  • 1 393 messages

Sadly, they reanimate once out of sight - glitches as you mention - so yes, please make a petrified version of every creature and stock NPC as a placeable statue. That will help everyone.

FP!


  • Verilazic aime ceci

#6
Pstemarie

Pstemarie
  • Members
  • 2 745 messages

Sadly, they reanimate once out of sight - glitches as you mention - so yes, please make a petrified version of every creature and stock NPC as a placeable statue. That will help everyone.

FP!

 

LOL



#7
3RavensMore

3RavensMore
  • Members
  • 703 messages

Sadly, they reanimate once out of sight - glitches as you mention - so yes, please make a petrified version of every creature and stock NPC as a placeable statue. That will help everyone.

FP!

 

Don't forget CEP an Q as well!  And I want multiple poses.  And a pony.

 

Okay, all joking aside--you can leave out the pony.  :P



#8
Pstemarie

Pstemarie
  • Members
  • 2 745 messages

I opted for a different solution - "sleeping" villagers vs. petrified ones. Just as cliche, but much easier to implement, not to mention far more stable.



#9
kalbaern

kalbaern
  • Members
  • 824 messages

NPC statues are albeit a bit wonky at times, but still decent enough to use. Here's a link to the ones I dropped on the Vault awhile back.

http://neverwinterva...c-statues-redux


  • Pstemarie aime ceci

#10
Pstemarie

Pstemarie
  • Members
  • 2 745 messages

Hey thanks, I'll have to give those a try. Somehow I missed that little gem while searching the Vault.



#11
Baaleos

Baaleos
  • Members
  • 1 330 messages

When we are talking about petrified - are we referring to the effectPetrified?

 

Why not try EffectCutsceneFreeze - 

And then use EffectVisualEffect to apply stoned skin.

 

You may still get the issue of them doing the da-vinci pose on area entry etc

But the freeze effect shouldnt be removed in any case.



#12
Pstemarie

Pstemarie
  • Members
  • 2 745 messages

Starting to see that for the amount of time I've wasted trying to get/make scripts that actually work without relying on the PC being in perception range, I could have just converted the models to placeables and been done with it.  :blink:



#13
meaglyn

meaglyn
  • Members
  • 808 messages

There are rat holes...  been down a few myself.


  • Pstemarie et Verilazic aiment ceci

#14
Pstemarie

Pstemarie
  • Members
  • 2 745 messages

Had to compromise and settle for scripted statues that animate for just a moment then freeze. I took Kalbaern's scripts and modified to the OnSpawn event to work as an OnPerception event. The statues seem to hold the chosen pose, even when the PC moves out of perception range or leaves the area - so its slightly more reliable (at least in my experience).

 

I tried making placeable statues, but the models I want to use for the villagers all have skins, and, although the statues loaded fine in the toolset, they crashed the game. My guess is that the game doesn't like placeables with skinmesh.

 

I'll give the OnPerception script below - the OnConversation script is unmodified.

 

Spoiler

 

I opted for using a local variable on the creature to store the animation rather than using a random animation. If no variable is stored, then the script will default to ANIMATION_LOOPING_CONJURE1 animation.

 

EDIT - EPIC FAIL...worked great with one NPC statue, but the moment I added more statues, the entire routine went all wonky. So its back to OnSpawn, which works adequately as long as the PC doesn't move right in once the statues OnPerception event fires and they animate.