kryptopyr Posted October 7, 2012 Share Posted October 7, 2012 I'm having trouble figuring this one out... I want to create a condition that will apply a perk bonus (lockpicking bonus), but only if an item isn't owned, so only containers that don't have the "steal from..." text, and from doors that don't have an owner. I thought this would be a fairly simple thing to do, but so far nothing I've tried has worked. I have this set up as a new lockpicking perk that modifies the lock sweetspot. The perk window allows me to set conditions for both the perk owner and lock reference. I've used IsTrespassing as a condition on the perk owner, and this seems to work as expected (the bonus isn't applied when the player is trespassing). However this condition doesn't affect the exterior doors on owned houses or any owned containers that are in cells where the player isn't marked at trespassing (even if it's still considered stealing to take things from the container). I've tried using the IsOwner or GetCrime conditions for the Lock Ref, but either I'm not setting the parameters correctly or those conditions just don't work on the Lock Ref (maybe the ownership status of the container/door doesn't apply to the lock reference?). It seems as if there must be some way to make this work, that the game has to have a way to recognize this distinction. Any suggestions or advice would be greatly appreciated. Link to comment Share on other sites More sharing options...
JanusForbeare Posted October 7, 2012 Share Posted October 7, 2012 You should be able to use some variation on the IsOwner function to do this. For example: if ((Game.Getplayer).IsOwner != 1) (Game.Getplayer).modav("lockpicking", 10) endif This is just an example. We can give you more specific advice if you post your script in its entirety. Link to comment Share on other sites More sharing options...
kryptopyr Posted October 7, 2012 Author Share Posted October 7, 2012 Thank you! However, I'm not using a script (maybe I need to, though?). Currently I have it set up as a perk, because I want to modify the Lockpick Sweet Spot instead of modifying the lockpicking skill. Here are screenshots of what I currently have: https://s3.amazonaws.com/kryptopyr/Lockpicking01.jpghttps://s3.amazonaws.com/kryptopyr/Lockpicking02.jpg I've tried various combinations of the GetCrime and IsOwner conditions... I've tried using one without the other, I've tried using GetCrime as a condition on the Locked Ref instead of the Perk Owner, as well as using IsOwner as a condition on the Perk Owner instead of the Locked Ref. I've tried switching the target parameter to Run On: Target, Reference, and Linked Reference (none of which worked). Link to comment Share on other sites More sharing options...
Recommended Posts