heat465 Posted December 31, 2016 Share Posted December 31, 2016 I'm trying to find if there's a script/process that activates when you pickpocket someone, does anyone perhaps know what it is? Link to comment Share on other sites More sharing options...
heat465 Posted January 1, 2017 Author Share Posted January 1, 2017 Anyone? Link to comment Share on other sites More sharing options...
JoKelly Posted January 1, 2017 Share Posted January 1, 2017 I will be working on my mod later this afternoon, I can take a look for you then. Link to comment Share on other sites More sharing options...
ElfyPers0n Posted January 1, 2017 Share Posted January 1, 2017 I think that stuff is just part of the game engine. If you're looking to make a script yourself, "Begin OnOpen" on a scripted NPC may work. Haven't really messed around with that kind of stuff though, so I can't say whether it would work. Link to comment Share on other sites More sharing options...
heat465 Posted January 2, 2017 Author Share Posted January 2, 2017 I think that stuff is just part of the game engine. If you're looking to make a script yourself, "Begin OnOpen" on a scripted NPC may work. Haven't really messed around with that kind of stuff though, so I can't say whether it would work. How would I be able to script it so it checked if I was pickpocketing from a random NPC that could be pickpocketed? Link to comment Share on other sites More sharing options...
JoKelly Posted January 2, 2017 Share Posted January 2, 2017 Sorry it took me so long, okay I went through the Geck and found nothing. which is not to say its not there, but that if it is there is under something other name. though I would lay good money on it being part of the Engine. Link to comment Share on other sites More sharing options...
Jokerine Posted January 3, 2017 Share Posted January 3, 2017 Could you use a combo of OnActivate + Player.IsSneaking maybe? There's also IsActorDetected, GetDetected and GetDetectionLevel that could come in handy. Link to comment Share on other sites More sharing options...
ElfyPers0n Posted January 3, 2017 Share Posted January 3, 2017 I think that stuff is just part of the game engine. If you're looking to make a script yourself, "Begin OnOpen" on a scripted NPC may work. Haven't really messed around with that kind of stuff though, so I can't say whether it would work. How would I be able to script it so it checked if I was pickpocketing from a random NPC that could be pickpocketed? To do that, you'd need to do something like "Begin MenuMode" and then "If Player.isSneaking" before a script to detect when the player is pickpocketing. I'm not entirely sure what the best way to do that would be, and there are probably a few. You might have some success using GameMode instead, but I'm not even sure how to approach that. If you don't have a clue where to start, I'd suggest making a small scripted home or shop mod first, so you can build up experience with simpler scripts before you try something like this. Link to comment Share on other sites More sharing options...
ElfyPers0n Posted January 3, 2017 Share Posted January 3, 2017 Here's a list of vanilla functions that might help you get an idea of where to go with this. Also, here's a list of NVSE ones, in case there's a simpler one there. You can also check JIP or Lutana plugins to see if they have anything helpful. Link to comment Share on other sites More sharing options...
Mktavish Posted January 5, 2017 Share Posted January 5, 2017 How about a script using this function http://geck.bethsoft.com/index.php?title=GetPCMiscStatSomething like this ... ~~~~~~~~~~~~~~~~~~ SCN MyPickPocketScript Int iPickPocketInt iLastPickPocket Begin GameMode Set iPickPocket to GetPCMiscStat "Pockets Picked" If iPickPocket > iLastPickPocket ; Do something Set iLastPickPocket to iPickPocket endif End ~~~~~~~~~~~~~~~~~~~~~~~ So this script will do something right after the barter menu from pick pocketing is closed.If you want to do something prior to the actual pick pocket. Begin MenuMode 1053 If Player.IsSneaking == 1 && ; something to do with checking if the active reference is a vendor ??? not really sure. Err wait ... can you even start a conversation to get to the barter menu while sneaking ? Maybe explain what you want to achieve with it ... to then maybe see a better route to get there. Link to comment Share on other sites More sharing options...
Recommended Posts