• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Need help with a lockpicking mod

Fleshus

New member
Hello, I'm trying to create a mod, tried to take inspiration from other similar mods, but after fumbling around for hours I'm tired of trying to guess what to do to make it work.
So I resign myself to asking for help here!

Here's what I'm trying to fit into my mod:
- Removed perk lockpicking (DONE)
- Lockpick opens every time and instantly (1sec) (DONE)
- That the player can no longer craft the lockpick (DONE)
- Increase the value of the lockpick (DONE)

And the part that hates me and where I need help:
- That the opening of a lock requires 1 lockpick, in other words that the player loses 1 lockpick at each opening (NOT DONE)

 
Hello, I'm trying to create a mod, tried to take inspiration from other similar mods, but after fumbling around for hours I'm tired of trying to guess what to do to make it work.
So I resign myself to asking for help here!

Here's what I'm trying to fit into my mod:
- Removed perk lockpicking (DONE)
- Lockpick opens every time and instantly (1sec) (DONE)
- That the player can no longer craft the lockpick (DONE)
- Increase the value of the lockpick (DONE)

And the part that hates me and where I need help:
- That the opening of a lock requires 1 lockpick, in other words that the player loses 1 lockpick at each opening (NOT DONE)


Hi Fleshus

You have tried adding count = "1" to each block that is opened with Lockpick.

Example: cntGunSafe has this line, you could change it and see if it works.

Before:
<property name = "LockPickItem" value = "resourceLockPick" />

Then:
<property name = "LockPickItem" value = "resourceLockPick" count = "1" />

I'm not entirely sure if it works, but maybe still.

 
Did you accomplish "Lockpick opens every time and instantly (1sec) (DONE)" by changing the break chance value on all locked container blocks to 0?

 
Hi Fleshus

You have tried adding count = "1" to each block that is opened with Lockpick.

Example: cntGunSafe has this line, you could change it and see if it works.

Before:
<property name = "LockPickItem" value = "resourceLockPick" />

Then:
<property name = "LockPickItem" value = "resourceLockPick" count = "1" />

I'm not entirely sure if it works, but maybe still.
Yes I tried adding count = "1" in different places including this way (it seems to me ...)

Did you accomplish "Lockpick opens every time and instantly (1sec) (DONE)" by changing the break chance value on all locked container blocks to 0?
For the moment I am doing my tests on only one safe and yes I changed the break chance to 0 and then I deleted the line which also worked I think.

 
Back
Top