PDA

View Full Version : Anamation Script help


Doc Valentine
08-14-2005, 04:07 PM
Okay I want to make the npc when he gets to the planet Korderon to appear as though he had 1 health point. You konw the animation they do when they are low health, where they slouch and hold their bodies. I need that effect, and if it is possible without actually damaging the player. Thanks

-Gsccc

darkwarrior
08-14-2005, 04:21 PM
Won't EffectDeath work? It worked for my Sion.

ApplyEffectToObject(2, EffectDeath(0, 1, 0), oDarthSion, 0.0));

The only problem here is, I set Sion to minimum 1 HP (I think) so the minions die where he lives (though they have 9hp minimum in the same slot...). You can't do that for the PC utc.

darkwarrior
08-14-2005, 04:26 PM
How about http://www.nwnlexicon.com/compiled/function.effecttemporaryhitpoints.html

stoffe
08-14-2005, 08:45 PM
Okay I want to make the npc when he gets to the planet Korderon to appear as though he had 1 health point. You konw the animation they do when they are low health, where they slouch and hold their bodies. I need that effect, and if it is possible without actually damaging the player.

If the NPC in question is just standing still, you could use the command...

AssignCommand(GetObjectByTag("InjuredNPC"), PlayAnimation(10008, 1.0, -1.0));

...if you spawn the NPC with a script. Or put it in their OnSpawn event script if it is unique without the AssignCommand part. That should make them play their Standing Injured animation.

Won't work too well if the NPC is supposed to move around arbitrarily while still looking injured though. Then the easiest way is probably to damage them enough to make them switch to the Injured animation set, and disable their health regeneration.

Doc Valentine
08-14-2005, 08:55 PM
Will that also work iwth GetFirstPC?