tonycubed2 Posted March 25, 2012 Share Posted March 25, 2012 Greetings, I would like to add ambush encounters when a player is "meditating" with the T command, really passing time quickly. But unlike the sleep function which has a quest attached to it and Papyrus direct support I find nothing for Meditating. Does anyone know where the script or quest for it is found? Tonycubed2 my mod to use with it: http://skyrim.nexusmods.com/downloads/file.php?id=12452 Link to comment Share on other sites More sharing options...
melomac Posted March 26, 2012 Share Posted March 26, 2012 The Greybeards and priests meditate so you may check in those quest areas. SendAnimationEvent (SAE) can start and stop a meditation idle in console and papyrus. SAE idleGreyBeardMeditateEnter - will start the meditationSAE idleChairExitStart - will end the meditation (in Papyrus, use the form 'debug.SendAnimationEvent( akTarget as Actor, "idleChairExitStart")' Other idle events can still interrupt your event (breaking meditation). Best to set up a sandbox package and disable most of the interrupts there and assign it to your NPC. Link to comment Share on other sites More sharing options...
SinderionsBones Posted March 26, 2012 Share Posted March 26, 2012 (edited) You could also AI drive the player to use a meditation piece of special furniture. I forget what those are called though, there's several of them in high hrothgar. Edit: you would most likely be spawning this furniture at the player. I'm not sure where you would insert these instructions though, to get when the player is waiting or whatnot. It's probably a basic function or condition somewhere Edited March 26, 2012 by SinderionsBones Link to comment Share on other sites More sharing options...
tonycubed2 Posted March 26, 2012 Author Share Posted March 26, 2012 Thank you very much for the reply and ideas. Just to clarify, are we talking about the same meditation as when pressing "T" in the keyboard? My objective is that if a player is in a dungeon, and he presses "T" and meditates for 8 hours, that there will be a random chance of a monster attacking. I am not sure that the greybeards meditasting is the same thing. Link to comment Share on other sites More sharing options...
melomac Posted March 26, 2012 Share Posted March 26, 2012 hmm, my misunderstanding. There are no events or functions in Papyrus tied to "meditating". Even sleep is not really interruptable (the DB come for you when you first try to enter sleep and there are events tied to when sleep starts/stops in Papyrus but nothing to force the player to wake up. Once you start sleeping, you are dead to the world). Link to comment Share on other sites More sharing options...
tonycubed2 Posted March 26, 2012 Author Share Posted March 26, 2012 Hi , The heart of my working mod is interrupting sleep. I found a way . My mod is at: http://skyrim.nexusmods.com/downloads/file.php?id=12452 A video I made showing sleep interrupted is here: The way to interrupt the sleep is to move the player from his present location to the same location. Papyrus is thread based, so while it is counting down you can wake up the player by moving him. Works great. The playersleepquest quest provides all the variables to work with. So for the "T" key waiting/meditating routine where time counts down I bet you if I move the character it will halt. But I need to know how to monitor it or at least work with the countdown counter. I still do appreciate all your help and thank you for your comments. Link to comment Share on other sites More sharing options...
Recommended Posts