Jump to content

[NV] Pickpocketing


heat465

Recommended Posts

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

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

 

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

How about a script using this function http://geck.bethsoft.com/index.php?title=GetPCMiscStat

Something like this ...

 

 

~~~~~~~~~~~~~~~~~~

 

SCN MyPickPocketScript

 

Int iPickPocket

Int 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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...