TyburnKetch Posted July 23, 2020 Share Posted July 23, 2020 So I have the animobject tankard that I would like to add to the animation for this mead barrel furniture but I have not been able to find out how to do it. If it was an idle I think it would be more straight forward, but the object is furniture, which has me stumped. Anyone managed to get the animation for this object to include a drinking vessel? Thanks. Link to comment Share on other sites More sharing options...
TyburnKetch Posted July 26, 2020 Author Share Posted July 26, 2020 (edited) Or am I looking at this all wrong and there is another way to achieve the same thing? Edited July 26, 2020 by TyburnKetch Link to comment Share on other sites More sharing options...
cumbrianlad Posted July 26, 2020 Share Posted July 26, 2020 That mead barrel can only be the one in the Thieves' Guild quest at Honningbrew meadery. The Captain of the guard uses it in a scene in the quest TG03SP. To get him to use it the scene calls for him to run a package. I can't recall seeing anyone using this furniture except the Captain, so it may be that you'll have to add a package to an actor to get them to use it. Link to comment Share on other sites More sharing options...
NexBeth Posted July 26, 2020 Share Posted July 26, 2020 It is only used in the thieves guild quest but it still appears to be a regular furniture marker. The trick is getting an NPC to hold a tanker while pouring. Been trying to figure that out myself for a long time too. There are idle markers that will animate NPCs to play instruments, sweep, etc., but I don't know how to apply that to this marker. Seems to be only tied to the quest, unfortunately. Thing is, NPCs already do have tankard animations because they use them in various other situations. Link to comment Share on other sites More sharing options...
TyburnKetch Posted July 26, 2020 Author Share Posted July 26, 2020 (edited) Thank you for the specific quest. Did not think about packages providing a tankard. Will have a look into it. My npc uses it fine. He just fills an invisible cup/tankard. Edit* Posted without seeing your post NexBeth! Yeah. I have been looking at the possibility of moving it away from furniture and using ismeadbarrel in a custom idle. I did a uses search on the keyword and found an idle called idlemeadbarrel or something similar that I then could not find anywhere in the CK. It listed it as being used by the keyword but it had no actual instances of use. I have to admit that animations and idles generally have me confused. It does seem odd that the animobject of a tankard would not just be included in the idle that the keyword ismeadbarrel uses. Like you say, idleloosesweep (?) for example, has a broom attached to it ... Edited July 26, 2020 by TyburnKetch Link to comment Share on other sites More sharing options...
cumbrianlad Posted July 27, 2020 Share Posted July 27, 2020 Nexbeth it is only used as a furniture marker in that single instance. The use info confirms that. The mead barrel activator is a different nif. I've trawled through the idle animations but I can't see one that is relating to pouring anything. I've just done that quest to get some clue as to what's going on and noticed that the Captain doesn't get a goblet in his hand when he uses the furniture. He does it before he even goes near the barrel. As soon as he hits the point in the scene where he says "Well, Sabjorn..." the goblet appears in his hand. The package action then gets him to go to the barrel. Because he already has it in his hand, The idle looks natural. So... the furniture itself does not make the user equip a goblet. So far I haven't found why he is equipping a goblet. Edit: Fount it! In the response text for "Well Sabjorn, now that you've..." spoken by the Captain, is a Speaker Idle Animation. It is OffsetCarryMQ201DrinkR. From what I've seen, once an idle animation is selected like this, it persists until something kicks the NPC out of it such as another idle being assigned or a new package running. So what is happening is that the captain has that specific idle assigned to him to get the goblet into his hand. Note that it is a goblet, not a tankard. He then carries it around and does the idle at the mead barrel. Without this idle being active already he would just hold an open hand under the barrel tap. From what I've seen you will somehow need to get your NPC to use this idle and then use the furniture. Link to comment Share on other sites More sharing options...
TyburnKetch Posted July 27, 2020 Author Share Posted July 27, 2020 Great work Cumbrianlad! Thank you very much for looking into this. I am now hopeful this information can be worked with. My first thought is a triggerbox with a script that gets the npc to play this idle, but there are probably lots of ways to do this. Will have a play and report back (probably with some script advice! Lol) Link to comment Share on other sites More sharing options...
cumbrianlad Posted July 27, 2020 Share Posted July 27, 2020 No worries, mate. Have fun! Link to comment Share on other sites More sharing options...
TyburnKetch Posted July 27, 2020 Author Share Posted July 27, 2020 (edited) Scriptname YourScriptName extends ObjectReference Actor Property YourActor AutoIdle Property OffSetCarryMQ201DrinkR Auto Function MoveAway()RegisterForAnimationEvent(YourActor,"IdleFurnitureExit")EndFunction Event OnActivate(ObjectReference akActivator) If akActivator == YourActorYourActor.PlayIdle(OffSetCarryMQ201DrinkR) EndIfEndEvent Event OnAnimationEventUnregistered(ObjectReference akSource, String asEventName) If (akSource == YourActor) && (asEventName == "IdleFurnitureExit")YourActor.PlayIdle(OffSetCarryMQ201DrinkR) EndIfEndEvent Update: So I got it to work! Kind of. I started with a triggerbox but the idle and the script did not seem to like that so I moved it to the meadbarrel furniture itself with an OnActivate and it works. However, placing the script on the meadbarrel itself makes the inherent pouring and drinking animation (without the goblet) happen for the first pour and THEN the idle for the goblet gets added for subsequent pours and gulps. Looks pretty strange but at least he has a goblet now! As i expected he walked away from the barrel still holding the goblet until i added the registerforanimation event which now removes the goblet. I am thinking of having a pile of tankards/goblets next to the meadbarrel as an activator so my npc looks as though he has just grabbed a goblet from there before approaching the meadbarrel. I will have to split the script into two, and work the action into his package but should not be an issue. However if anyone has an idea of how, or is better at script writing than me, to just have it all tied to the meadbarrel itself that would be much more appealing and much appreciated :) Thanks again cumbrianlad for finding the idle! Have posted the simple script I am currently using in case of interest to others. Edit* Haha. I do not think I used the word goblet enough in this post, so here is another. Goblet. Edited July 27, 2020 by TyburnKetch Link to comment Share on other sites More sharing options...
cumbrianlad Posted July 27, 2020 Share Posted July 27, 2020 Yeah! :thumbsup: I'm delighted it's going well and you are making progress. I'm no script Guru. I sort of wade through papyrus swamps when I have to, but wouldn't stick a toe in the filthy water unless pushed! Then I struggle to survive! Script help is best left to better people than me. I'm just good at quests, dungeon creation, story writing, dialogue and finding things like this. I'm like a terrier... I don't give up until I've got my prey! i'm also good at drinking beer or wine and listening to music. Link to comment Share on other sites More sharing options...
Recommended Posts