Lockpick Plugin

F*CK THAT'S AMAZING
Script Name+Version Number
PXD_Lockpick 0.1

Features

Creates a lockpick scene by plugincommand. its based on some games you know. when the lock is open, you hit a selfswitch.

Screenshots


How to Use
its all in the plugin description. install the data to your project folder and read the instructions.

Demo
is in the zip-data.

Copyright
Free to use for commercial and non-commercial use.

and the plugin is available at google drive


I hope someone finds some bugs, it's my first plugin and I'm a javascript beginner.
Good morning everyone, Wonderful Plug-in I must say, unfortunately I can't prevent the objects in my chest from being attributed to my inventory when I can't open the lock.

Could someone please explain to me how to do this?
@bequadro can you explain exactly what objects?
like it opens the chest even if failed?

if so, it might be causing that you have the items inside has the same,
to fix that, set a SS A on when succeeded, else do nothing.

it is explained in the plugin I believe and or demo how to use it.
I need to double check how it worked as it was a while when I tested
it with different settings.
Hello guys! I wanna use this plugin for a MZ game (tried to find any lockpicking plugins for mz but gound nothing)- do you know how to port it? Or maybe someone already ported it?
@Kshlbrkskh it might not work in MZ as the image usage and plugin command
mostly of it.

if it has its own function, than porting can be done easily if the plugin commands
are correct.

you can also see what plugin command are used, and might be able to use scriptcalls.
otherwise, try to event it or commission it.
How to make the event stop if lockpick fail?
please any example
I would also like to know how to do this.
@slickdeath97 check demo, everything is explained in there.
it's kinda easy, just the variables and strength need to balance nicely
for difficulty as it can break if its to high for no change 😛
@slickdeath97 check demo, everything is explained in there.
it's kinda easy, just the variables and strength need to balance nicely
for difficulty as it can break if its to high for no change 😛
I am trying to figure out how to make it so the chest doesn't open when exiting the lockpicking. Would I have to put the items given on the second page and make it an autorun with another self switch on or is there a better way to do this?
1708759929749.png
you need a condition or selfswitch when succeeded to let them loot
or let them fail, I need to take how it was done as I lost my demo mechanic
of this one, but read the helpfile, I try to help you out later when able.
you need a condition or selfswitch when succeeded to let them loot
or let them fail, I need to take how it was done as I lost my demo mechanic
of this one, but read the helpfile, I try to help you out later when able.
Okie dokie. Thanks.
Bumping because I still need help with this.
I am trying to figure out how to make it so the chest doesn't open when exiting the lockpicking. Would I have to put the items given on the second page and make it an autorun with another self switch on or is there a better way to do this?
View attachment 296317
looking at the plugin instructions and your image, I would say you need to do the plugin command like you have it and then you would have the rest on the next page. Self Switch A is called when the lock is open (as per the instructions).
Then set self switch b on so that it doesn't do the same page again when interacting with the lock. unless you can repeat this lock to get the same result.
the plugin command is correct: lockpick "strength" "background" "selfswitch"

but I think you can download the demo to see what you miss, as it has
a lock how it works, and you can copy that event, and play around with
the values.

it should work how you done it, but if you want to check for lock pick, use it like
this.
lockpick.png

However, there is also a variable for the player lockpick level skill to be set,
so if the level is 1, and level is strength is 20, it breaks fast.
levelSkil.png
so you need both to make sure it works correctly.
looking at the plugin instructions and your image, I would say you need to do the plugin command like you have it and then you would have the rest on the next page. Self Switch A is called when the lock is open (as per the instructions).
Then set self switch b on so that it doesn't do the same page again when interacting with the lock. unless you can repeat this lock to get the same result.
Ok, but what if the player exits the lockpicking? When I exited the lockpicking even when it was on another page, the switch still went off and game me the treasure.
Ok, but what if the player exits the lockpicking? When I exited the lockpicking even when it was on another page, the switch still went off and game me the treasure.
the instructions say that it calls the self switch page when the lock is open.
So if you have it set up correctly then there may be an issue with the plugin.
I see what you did wrong and my end as well.
page 1 is the plugin command you have.
page 2 is a autorun event to open the chest and give the items,
than SS to page 3 which stays open.

this is the correct way for chest instead of 2 pages.
that's how I done it in a demo project of the lockpick system.
So, if I wanted to make the lockpick system go into a mimic fight if they failed the lockpicking, how would I go at doing that?
similar to the normal, but slightly different, I need to test a few things and
check the plugin on failing part to check this.

I can check tomorrow as best for a bit as I'm busy at the moment,
but you can try to it like this:

page 1:
picklock variable = item count
SS A = ON

page 2
if picklock variable == item count
plugin command to pick the lock (this should go to SS B instead of A
else
battle mimic
end

alternative on page 2
if picklock variable != itemcount
battle mimic
else
plugin command here
end

you can try to loop it so if it fails, it loop into a battle and use break loop after battle.
make sure you cannot escape the battle if you do so, or it will break too (or use if win
and lose values for what happens here.

page 3 is the reward page, and page 4 will be open page.
this is best I can think off but untested, but should work.
similar to the normal, but slightly different, I need to test a few things and
check the plugin on failing part to check this.

I can check tomorrow as best for a bit as I'm busy at the moment,
but you can try to it like this:

page 1:
picklock variable = item count
SS A = ON

page 2
if picklock variable == item count
plugin command to pick the lock (this should go to SS B instead of A
else
battle mimic
end

alternative on page 2
if picklock variable != itemcount
battle mimic
else
plugin command here
end

you can try to loop it so if it fails, it loop into a battle and use break loop after battle.
make sure you cannot escape the battle if you do so, or it will break too (or use if win
and lose values for what happens here.

page 3 is the reward page, and page 4 will be open page.
this is best I can think off but untested, but should work.
I will gladly wait for an update tomorrow. You are always really helpful and amazing at explaining things so they make sense.
@slickdeath97 I cracked it for you and is a bit different, I used B, C but you
can do A, B normally.

Spoiler: Open chest or enter a battle setup
check if the player has a lockpick (this is crucial so it enter a battle if they dont.
when wont, go to page 2 (B in this example)

if player has a lockpick, it can unlock it and goes to page 2 if open.
else, it enter a battle if failed. so we check if switch B is true, if so, break loop as B will
continue to run else battle starts
page1.png

Page 2 will be the reward section as normal in autorun so it opens directly and
give the items to the player.
page 2.png

self explanation, nothing here, but just in case.
page 3.png

hope that this makes things clear for you.

Edit: small issue on page 1 for looping (will fix this soon)

Edit2: fixed issue, and works as it should @slickdeath97 good luck.

Original thread: https://forums.rpgmakerweb.com/threads/lockpick-plugin.97797/