Dimitrisgb Posted May 28, 2023 Share Posted May 28, 2023 (edited) I want to make some NPC's preach (like Mankar Camoran in the Shrine or the Prophet in KOTN) and pray (like Sir Roderic in KOTN and the Mazken/Aureals in the Flame of Agnon quest). I 've been looking into these NPCs' AI and scripts, but I haven't found any clue. Edited May 28, 2023 by Dimitrisgb Link to comment Share on other sites More sharing options...
Striker879 Posted May 28, 2023 Share Posted May 28, 2023 Do they have a Misc Item in their inventory? If so look for an AI package that is Use Item pointing at that Misc Item. A script will direct the item to an animation (look in Gameplay -> Idle Animations in the CS). Link to comment Share on other sites More sharing options...
Dimitrisgb Posted May 29, 2023 Author Share Posted May 29, 2023 They do not have any misc item in their inventory. As for the idle anims in gameplay, I think I found something. What am I supposed to do with that? Link to comment Share on other sites More sharing options...
IcelandicPsychotic Posted May 29, 2023 Share Posted May 29, 2023 (edited) They pray through a Use Item At AI package. The item is aaaObeisanceToken. The item doesn't need to be in their inventory. The count controls how often they do the praying animation. Edited May 29, 2023 by IcelandicPsychotic Link to comment Share on other sites More sharing options...
Striker879 Posted May 29, 2023 Share Posted May 29, 2023 This is what I use for adding dance animations to certain of my female 'house guests'. Forcing Idle Animations on the CS Wiki. The pictures are missing on the CS Wiki so for the three pics from this tutorial I uploaded them here:Forcing Idle Animations Pic 1Forcing Idle Animations Pic 2Forcing Idle Animations Pic 3 Link to comment Share on other sites More sharing options...
Dimitrisgb Posted May 29, 2023 Author Share Posted May 29, 2023 They pray through a Use Item At AI package. The item is aaaObeisanceToken. The item doesn't need to be in their inventory. The count controls how often they do the praying animation. I 'm not talking about that. With these moves the NPCs just ponder, hold their hands while looking down, raise their tight arm in the sky etc.For the moment I have made some progress. I found the idle anim for the preach (speechhandsonair) and for praying. I set 2 conditions: 1) GetIsID, to make sure that a certain NPC moves like that and GetIsUsedItemType. This is working for the preaching, but not for praying. I 'll keep testing. Link to comment Share on other sites More sharing options...
Dimitrisgb Posted May 29, 2023 Author Share Posted May 29, 2023 This is what I use for adding dance animations to certain of my female 'house guests'. Forcing Idle Animations on the CS Wiki. The pictures are missing on the CS Wiki so for the three pics from this tutorial I uploaded them here:Forcing Idle Animations Pic 1Forcing Idle Animations Pic 2Forcing Idle Animations Pic 3 How do I set the NPC to do that at a certain time of the day? Link to comment Share on other sites More sharing options...
Striker879 Posted May 29, 2023 Share Posted May 29, 2023 Using the the AI package schedule. You can also limit the package to certain parameters using Conditions (e.g. only execute in a certain cell etc). Link to comment Share on other sites More sharing options...
Dimitrisgb Posted May 29, 2023 Author Share Posted May 29, 2023 Yes. I think I am making it work this way. I still need to make some adjustments, 'cause some NPCs travel to the destination while praying. Link to comment Share on other sites More sharing options...
Striker879 Posted May 29, 2023 Share Posted May 29, 2023 The trick with Conditions is to use as few as you possibly can get away with. When I set up for an NPC to use a Chapel altar I try to make sure they have a Wander package in that Chapel for the hour following the Use Item package. Takes a lot of experimenting and tweaking sometimes. Link to comment Share on other sites More sharing options...
Recommended Posts