Lockpick Plugin

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
https://drive.google.com/open?id=1m8-zIJ3sxVCxFknbbDxUaTapmn7Cp12Q

I hope someone finds some bugs, it's my first plugin and I'm a javascript beginner.
Now, its available here..
Very cool! thanks for Sharing.
Very nice! I had to mess around with my plugin order to get it to work right. I have a lot of plugins and once I found the right placement, no compatibility errors from Galv Moghunter or Yanfly so far.
Looks great
This is really good! Thank you so much for sharing! I really hope to see more minigames like this
Really cool! I think I could have a use for this in one of my projects. What about the lock picking images, what are the terms for those?
I get everything set up no matter what position I have the lockpick in; the lock never opens.
This plugin is amazing- makes my game so much more immersive!

One thing though; I'm trying to develop my game for mobile as well and am using ALOE_MobileUI to overlay picture as button on the various scenes. In this instance I'd need a D pad (or directional buttons) to be on the screen to allow for the player to pick locks by touch, but for some reason I cannot get it appear on Scene_Lockpick.

Any thoughts?
How to make the event stop if lockpick fail?
please any example
Sorry to bother but,
I was wondering if there is a way to avoid Scene Manager from ending the 'Lock Picking scene' when a lock-pick breaks?
Any insight or plugin modification would be greatly appreciated.
Sorry to bother but,
I was wondering if there is a way to avoid Scene Manager from ending the 'Lock Picking scene' when a lock-pick breaks?
Any insight or plugin modification would be greatly appreciated.
I would like to know the same thing. And also, I have the player skill set to 100 and the lock strength set to 1 and I still can't open the lock.
You did a great job with this!
Is there a way to make it so the item used for picking the lock is not consumed?
You did a great job with this!
Is there a way to make it so the item used for picking the lock is not consumed?

You can just add a 'change item' event command at the end of the lock pick sequence and give the player another one.
You can just add a 'change item' event command at the end of the lock pick sequence and give the player another one.
I thought about this, but is not how I want it to be setup.
Thanks for the reply though
This is awesome and functionally perfect as far as I'm concerned. Great work!

Just redrawing the graphics to suit the 3:1 px ratio assets I'm using, and trying to make it look more like a modern lock while tightening up the positioning of the picks

Screenshot_20211214-073210_Messenger.jpg


Right now my graphics are sloppy, but I'm working on it, and i could upload them here when they're more suitable for actual use.
Gettin' there! This is kinda filler graphics right now, I want to redraw this bit later on but it works for now.

I adjusted the positioning of the lower pick but i'm having issues adjusting the positioning of the top pick. USUSALLY it's perfect but there are times where the pic appears to be floating outside the lock...

It seems like there's a bit of a buffer on the end between the graphic and the uhhh rotation point? I think if I can get it so the end of the graphic is more in the middle with the actual end of the graphic touching the rotation point I can avoid any of those graphic glitches.

I mean I'm playing around with the code, just not quite sure how to get what I want just yet. I've attached my graphics thus far in case anyone wants a modern lock.

1639504161508.png
@ophidic while I dont know if he is still active or maintain this plugin.
while it works, changing the graphics on 1 side easy, but you MUST retrain
from the images provided in order to get it to work.

modern lock like yours probably require to modify the plugin if you are
able to do so, but not everyone.

if you can modify it and works, maybe a own thread with the updated on
you made with demo? and link back to this one as the original author?

I dont know if you are free to redistribute to fix things while the author
is offline for a while.

but could be nice to help the community if someone wants a nice lockpick
system?
Yeah, I assumed it was probably ok cuz of this bit in the script and OP's hope that someone finds bugs to fix. I figured a modern lock would be fun.

1639566102322.png


I may be wrong, but I assumed this sort of contribution would belong in the original thread since I'm not releasing my own pack of graphics or serious modifications anything like that. However it could help someone learn how to make their own style of lock and adjust the script for whatever their needs are. I've been a member for a while but I only just started posting.

I've got this working pretty well so far though, this is my adjusted code for the lower pick:

Code:
Window_Lockpick.prototype.createRightStick = function() {
    this._rightStick          = new Sprite();
    this._rightStick.bitmap   = ImageManager.loadBitmap(pxd_lp_root_basic, 'lp_right');
    this._rightStick.x        = Graphics.boxWidth /2 -40  +pxd_lp_lock_x;
    this._rightStick.y        = Graphics.boxHeight /2 +50  +pxd_lp_lock_y;
    this._rightStick.anchor.x = 0;
    this._rightStick.anchor.y = 0.2;
    this._rightStick.rotation = -1.1;
    this.addChildToBack(this._rightStick);

and the upper one.

Code:
Window_Lockpick.prototype.createLeftStick = function() {
    var image = pxd_lp_lockpick_xl ? 'lp_left' : 'lp_left_xs';   
    var preload = pxd_lp_lockpick_xl ? 'lp_left_broke' : 'lp_left_broke_xs';
    this._leftStick          = new Sprite();
    this._leftStick.bitmap   = ImageManager.loadBitmap(pxd_lp_root_basic, image);
    this._leftStick.x        = Graphics.boxWidth /2 +10  +pxd_lp_lock_x;
    this._leftStick.y        = Graphics.boxHeight /2 +pxd_lp_lock_y;
    this._leftStick.anchor.x = .10;
    this._leftStick.anchor.y = 0;
    this._leftStick.rotation = 3.1;
    this.addChild(this._leftStick);
    ImageManager.loadBitmap(pxd_lp_root_basic, preload);

I figured it wouldn't be too difficult, but I wasn't sure. Anyway, adjusting stick.x and stick.y and the anchor seemed logical, I guess as this kind of thing tends to be.
now that I look to it, I think you can make more intresting as well 🙂
if you can target the x/y on the create, leftstick/right stick with
2 argement, in the function, you can create basicly any kind of lock.
you might need more if you rotate the parts so you can use any kind
of lockpick and call the scriptcall first, than the scene =)

but see what you can do or the programmer 🙂
create a new demo, and re-upload here or own thread with original link
to this thread as he made the plugin 🙂

but I save that part as well and the images. (not sure if I use it, but
can come in handy sooner or later.

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