Jump to content

Need help with a lockpicking mod


Fleshus

Recommended Posts

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)

Link to comment
Share on other sites

1 hour ago, Fleshus said:

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.

Link to comment
Share on other sites

2 hours ago, Gouki said:

 

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 ...)

35 minutes ago, Mihail said:

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...