aVENGER, on May 21 2009, 03:25 PM, said:
Yup, I was thinking of doing something like that and re-using my approach for failed store theft attempts with some minor dialogue adjustments.
RR is probably the best place for this patch. I'm tempted to pinch it too, but you wouldn't want this patch going in more than once in a multi-mod install.
The main caveat would be that RR (or whatever mod this goes in) would have to be installed fairly late, possibly even last. The reason for that is that it'll have to extend all scripts of potential pickpocketing targets, including mod-added creatures and merchants. Of course, I could include the PickPocketFailed() block in my creature scripts, and the related dialogue, but it'll do nothing without the patch, and I wouldn't want to put in the patch without accounting for all targets.
If you need help with the code, let me know (or Taimon would be even better, if he's got time to look at that too). There's code in p5tweaks you might be able to adapt (in p5_script.tpa) that conditionally extends scripts with ACTION_PHP_EACH. Nythrun, the bigg and Taimon went over it somewhat, but it might need to be reoptimised with the latest know-how.