Jump to content

Setting Idle Animations for NPCs


xuxaglock

Recommended Posts

Hello again. Can anyone help me set up some of my companion NPCs with some idle animations. Basically I'd Like to have my companions doing some of these Custom Animations ive downloaded, on there own. For instance, theres one where they drink wine. Is there a way to set it so at night, my NPC does this wine drinking animation?

 

Also, is there a way to cycle the animations using time or some other trigger?

 

Theres so many funny and cool animations out there it'd be great if my NPCs were doing them when i came home from a long day of dungeon runnin :)

 

Any help is much appreciated. Thanks

Link to comment
Share on other sites

I'll help with what I can.

 

1. Open the CS and go to File->Data and check the Oblivion.esm box (Not sure with your experience using the CS so I figure I'll go through it from the start)

2. After it loads go to Gameplay->Idle Animations

3. In the window that appears you can see a section called Characters/_Male/IdleAnims

4. Clicking on the + next to it opens up it's submenu. Find the one called AnimObjectAnims.

5. Click the + to open it's submenu. As you can see there is an Eat section, as well as 3 Drink sections.

6. Right click anywhere in that area and select Insert Sibling

7. Name it what you want, but keep it similar to similar animations (Theres DrinkMug and DrinkPotion, so make your wine animation DrinkWine, stuff like that)

8. Now click on the DrinkMug section, Note that it is a Special Idle, as well as the fact that it is activated when an NPC uses any of the items specified in the Conditions window. They all use 'GetIsUsedItem <Item> == 1' and all have the OR box checked.

9. Go back to your animation, and click the box that says Select Animation File, then navigate to the animation you want to use. (It's considered a mesh so you should put it in "Data\Meshes\Characters\_male\IdleAnims" to keep things organized) For this example lets use the drink wine animation.

10. Ok now for the conditions make a seperate condition using the same setup we saw in step 8 for every type of wine you want associated with this animation.

11. Go back to the DrinkMug animation and delete all the conditions that have the same items you just associated with your new animation, no point in confusing the game.

 

 

Rinse and repeat for all the other animations, I don't really know what you got so this is all I can help with.

 

 

<Alternate Way>

Note 1: If you can't see your companion's Editor ID in the CS, you need to open up the File->Data window again and select the mod that adds your companion in addition to the Oblivion.esm

Note 2: If you want to do this for multiple companions from different mods, you need to select all the mods, make a Faction that all the companions are in, and change the "GetIsID <Companions Editor ID> == 1" below to "GetFactionRank <Faction Editor ID> == 0"

Note 3: If you want it to only apply to your Companions use these conditions instead of the ones that have anything to do with what the NPC uses (note that the game uses military time for scripts):

 

GetIsID <Companions Editor ID> == 1 (Don't use the OR checkbox)

GetCurrentTime <INVALID> <= 3 (Use the OR checkbox)

GetCurrentTime <INVALID> >= 21 (Use the OR checkbox)

 

This basically tells the game that if it is your companion and it is before (<=) 3 am, or after (>=) 9 pm

Link to comment
Share on other sites

I'll help with what I can.

 

1. Open the CS and go to File->Data and check the Oblivion.esm box (Not sure with your experience using the CS so I figure I'll go through it from the start)

2. After it loads go to Gameplay->Idle Animations

3. In the window that appears you can see a section called Characters/_Male/IdleAnims

4. Clicking on the + next to it opens up it's submenu. Find the one called AnimObjectAnims.

5. Click the + to open it's submenu. As you can see there is an Eat section, as well as 3 Drink sections.

6. Right click anywhere in that area and select Insert Sibling

7. Name it what you want, but keep it similar to similar animations (Theres DrinkMug and DrinkPotion, so make your wine animation DrinkWine, stuff like that)

8. Now click on the DrinkMug section, Note that it is a Special Idle, as well as the fact that it is activated when an NPC uses any of the items specified in the Conditions window. They all use 'GetIsUsedItem <Item> == 1' and all have the OR box checked.

9. Go back to your animation, and click the box that says Select Animation File, then navigate to the animation you want to use. (It's considered a mesh so you should put it in "Data\Meshes\Characters\_male\IdleAnims" to keep things organized) For this example lets use the drink wine animation.

10. Ok now for the conditions make a seperate condition using the same setup we saw in step 8 for every type of wine you want associated with this animation.

11. Go back to the DrinkMug animation and delete all the conditions that have the same items you just associated with your new animation, no point in confusing the game.

 

 

Rinse and repeat for all the other animations, I don't really know what you got so this is all I can help with.

 

 

<Alternate Way>

Note 1: If you can't see your companion's Editor ID in the CS, you need to open up the File->Data window again and select the mod that adds your companion in addition to the Oblivion.esm

Note 2: If you want to do this for multiple companions from different mods, you need to select all the mods, make a Faction that all the companions are in, and change the "GetIsID <Companions Editor ID> == 1" below to "GetFactionRank <Faction Editor ID> == 0"

Note 3: If you want it to only apply to your Companions use these conditions instead of the ones that have anything to do with what the NPC uses (note that the game uses military time for scripts):

 

GetIsID <Companions Editor ID> == 1 (Don't use the OR checkbox)

GetCurrentTime <INVALID> <= 3 (Use the OR checkbox)

GetCurrentTime <INVALID> >= 21 (Use the OR checkbox)

 

This basically tells the game that if it is your companion and it is before (<=) 3 am, or after (>=) 9 pm

 

Awesome. Thanks I think I did it but after I saved it from CS i dont see it in my OMM to check the esp. do i need to move it from somewhere?

 

Edit I found it.

 

Its not workin, I opend my NPC i tried in in CS> I do not see the animation I made on the NPCs list. Is there a way to put it there? I see the animation I made in the gameplay>Idle>animations tab but its not in my NPC tab.

 

I just tried a simple pose one first. and set it like you said with the NPC id and just made it a 24/7 thing to test it out. GOnna keep fiddlin with it though for now.

Link to comment
Share on other sites

well the most of the idle animations won't show up in the NPC animation tab i don't think. I was trying to get some idles working for then the player was in 3rd person and would eat if he had so little health or whatever. I never could get it to work, but I know how to set them up as far as I know
Link to comment
Share on other sites

Oh ya i forgot to post the mod Im using. Maybe that will help.

 

http://www.tesnexus.com/downloads/file.php?id=13193

 

Ima keep workin at it and tweekin it. see if I can get it workin. Maybe its my master list order. Or. Could it be since Im setting as an idle thing, if my NPC is doing some other script that I dont know about and keeping it from idle? I mean shes just standing there and not doing what I added or any other kinda of animation. its not during her eating or sleeping times.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...