Can Morrowind Animations be done via scripting?

Post » Mon May 02, 2011 12:51 am

I never used lovers and legends, but i heard that it incorporated animations via scripting. Is there a way to do similar with things like sitting chairs, or just using spells to do poses? It probably sounds silly but does anyone have anything on this?
User avatar
Spencey!
 
Posts: 3221
Joined: Thu Aug 17, 2006 12:18 am

Post » Mon May 02, 2011 3:46 am

Animations that use one of the idle slots can be scripted using the AiWander command. L&L used idle7 & 8 I believe; I would have to look at the scripts to be absolutely sure. Morrowind NPC can't pose like Oblivion ones in that you cannot attach an animation to an NPC outside of the CS. If the NPC already has a particular pose in their animation file, then you could use a spell that calls a script that causes them to pose. That may be a bit more complicated than what you're looking for, though. As for sitting NPCs, most mods that have them use chair "pants": the NPC is actually standing, but it looks like they're sitting because of what they're wearing.
User avatar
JAY
 
Posts: 3433
Joined: Fri Sep 14, 2007 6:17 am

Post » Mon May 02, 2011 4:04 am

Ok thanks Jac.... So, i would have to use the animkit to apply sitting to an idle slot, and then script the pc to apply that anim when the chair is activated, hover over the chair, sit, and keep the pc forced in that position until the chair is activated once more...? right? why I am asking this is because i cant use sitting pants in an exterior cell because of legs not being able to penetrate ground and it would be nice to have a full chair replacer.... but also to fill slots like with horse mounting... So, in theory, this would work, right?
User avatar
sam
 
Posts: 3386
Joined: Sat Jan 27, 2007 2:44 pm

Post » Mon May 02, 2011 1:12 am

It would work, mostly.

You can't use the script animation commands, they don't work. But, if you know your times (how long the sequence is), you can use AIWander 0-range 0-time, and 0 all the animation chances except the one you want played. Then, when the time is up, set AIWander to the loop or whatnot. Generally it works, although some things can break it (combat especially, you may want to force no combat).
User avatar
Britney Lopez
 
Posts: 3469
Joined: Fri Feb 09, 2007 5:22 pm

Post » Mon May 02, 2011 2:59 am

PC animations cannot be scripted with “direct” animation functions (e.g. AIWander). L&L uses NPC clones of a PC.
PlayGroup/LoopGroup functions are not working properly for NPCs.
There is no need to use LizTail’s kit: NPC animations can be attached in the TESCS in the same way as original “dancing girls” animations.
Be ready for tough scripting: AITravel (to approach a chair); Face (to have correct NPC angle alignment with the chair); sitting down transition, sitting, and standing up (if necessary) idle sequences (AIWander); timing of these events (GetSecondsPassed).
And the last but not the least: chair/NPC collision – it is not possible without tricks to convince an NPC to sit correctly on regular MW objects like chair.

From my point of view (unless your are specifically interested in this topic and a good scripter) it is not worthwhile (efforts compared with in-game results) to try that.

NPC posing is less complex, but animations themselves should be “ready” for that: AIWander loops not between “Loop Start”/”Loop Stop” text keys but between “Loop”/”Stop” ones. Hence, transitions should be in separate idles.

:)
User avatar
Philip Rua
 
Posts: 3348
Joined: Sun May 06, 2007 11:53 am

Post » Sun May 01, 2011 4:15 pm

Ok, what about replaceing the sneak animation with a sitting one? Would that work?
User avatar
RaeAnne
 
Posts: 3427
Joined: Sat Jun 24, 2006 6:40 pm

Post » Sun May 01, 2011 5:27 pm

Yes, but you would still have to go through the process Axel mentioned.
User avatar
Irmacuba
 
Posts: 3531
Joined: Sat Mar 31, 2007 2:54 am

Post » Sun May 01, 2011 1:24 pm

But I Mean, on the player, If the sneak anim was replaced in the animations folder with a sitting one, wouldnt you go to a sitting position every time you pressed sneak?
User avatar
Naughty not Nice
 
Posts: 3527
Joined: Sat Nov 04, 2006 6:14 am

Post » Mon May 02, 2011 4:36 am

Yes, but you'd need LizTail's animation kit to either create an animation file that you attached to the player character via the CS or to make a global replacer that affected all NPCs. Look at Oshial's animation replacer before you pursue this path to get an idea as to what exactly you're in for.
User avatar
Your Mum
 
Posts: 3434
Joined: Sun Jun 25, 2006 6:23 pm

Post » Sun May 01, 2011 12:31 pm

Ok, thanks Jac. :) I'll try that
User avatar
Vicki Blondie
 
Posts: 3408
Joined: Fri Jun 16, 2006 5:33 am


Return to III - Morrowind