NexBeth Posted August 4, 2020 Share Posted August 4, 2020 So in this example, the NPC has to have the goblet in inventory? In your original setup with the script only on the mead barrel, does the NPC also have to have goblet in the inventory? And that one did work, but only for subsequent animations? Link to comment Share on other sites More sharing options...
TyburnKetch Posted August 4, 2020 Author Share Posted August 4, 2020 No. No goblets in inventory. The goblet is added by the idle. The idle has to play before the npc gets to the meadbarrel otherwise, yes, the first pour will be into an empty hand. Which is why I have a triggerbox before the meadbarrel. Link to comment Share on other sites More sharing options...
NexBeth Posted August 4, 2020 Share Posted August 4, 2020 I'm not a scripter, but is this designed for specific actors? "YOUACTOR" Random NPC won't use it without the property filled for a specific NPC? Link to comment Share on other sites More sharing options...
TyburnKetch Posted August 4, 2020 Author Share Posted August 4, 2020 (edited) Yes. For this purpose it is designed with one specific person in mind. If you want it to work with random NPC's but not have the Player trigger the triggerbox script try this: Scriptname TH_DrinkingIdle_Effect_Script extends ObjectReferenceIdle property OffSetCarryMQ201DrinkR AutoActor Property PlayerRef AutoAuto State InEvent OnTrigger(ObjectReference akActionRef)If akActionRef == !PlayerRefutility.wait(0.1)Debug.SendAnimationEvent(akActionRef, "OffSetCarryMQ201DrinkR")Utility.Wait(8.0)GoToState("Out")EndIfEndEventEndStateState OutEvent OnTrigger(ObjectReference akActionRef)If akActionRef == !PlayerRefUtility.Wait(8.0)GoToState("In")EndIfEndEventEndState Have not tested it in game but it compiles. Do the same on the furniture script. As in change the YOURACTOR to !PlayerRef (not the player) and then any random NPC should be able to use it. I had to change some of the wait times around a bit when I moved the set up out of my test cell. But the principle is the same. Edited August 4, 2020 by TyburnKetch Link to comment Share on other sites More sharing options...
NexBeth Posted August 5, 2020 Share Posted August 5, 2020 Thanks, TyburnKetch. Link to comment Share on other sites More sharing options...
cumbrianlad Posted August 5, 2020 Share Posted August 5, 2020 Hi TyburnKetch! You thanked me a while back for making this possible. I suppose I can take the credit for pointing you in the right direction, but you have my admiration for getting this as far as you now have. I couldn't even be bothered to attempt that! I guess this just typifies what Nexus is all about. We all have different knowledge/skills. On our own we can achieve a lot, but together we can work wonders! This is why I love Nexus! Link to comment Share on other sites More sharing options...
Recommended Posts