Lockpick Plugin

@twosnakes if times allows it, I check later and give the option to keep
the window open as long you have lockpicks and paste the solution
here for you.
@twosnakes here is a semi solution that works, but there is a small problem,
and don't know how to fix that yet.

while you need to hold X for 2 seconds, the OK also refreshes somehow, so
you might need to make a another check doing the same for it, but notify the player
if they use Z or X, they must hold it to cancel out, as the scene refresh itself after
fading out and a new lockpick to come.

as I rewrite it a little here and there, I take this part into account once released.
so here is a temporal solution to your cause.
Hope it helps.
lockpickUpdate.png
Yeah that'ts how I tried with loops, exact same setup. The lockpick scene refreshes even when successful:LZYhuh:
when successful, it swap to the next page, does that not happen in your case?

Edit:
your where right, it refreshed somehow, I updated the image for you to make it work.
not sure why an additional check is required instead going there directly.

but this does work now (tested and confirmed) as I think the check is required
every time like this to make sure it works, if inside a loop anyway.
Yes it works now! Thank you. I'll try to clean up the individual event page, puting most things to a common event for now. Do you think eventually you will be able to do all this within the plugin?

side note, which line of code to make the pick turn faster? I believe it feels too slow on default settings.

Thanks for working on this @ShadowDragon, much appreciated👍
I have to check what line that does, and to make it work smoother to
refresh the lockpick only, rather than the scene is something I need to check.

as I think there wasn't an option inside a loop to cancel out.

but while I rework the plugin when I got time, all the param's are gone,
because the way it works with my base is that is parses the object/numbers/strings
better and automatic it for me.

so I can just use "parameters["paramName"]" and it will automatically check
if it's a string, number, array or object.

as there are also some window sounds, this part is also removed, and make it
better as some has missing sound, so that part is also restructed.

but I definitely put it on my TODO list to make it automatic for the cancel the scene,
once the base works as his.

but on your question, look at line 694 and line 700 which has rotation -= 0.0015
and the other on +=0.0015

cannot tell what it exactly means in speed, but try to set it to 0.005 and see what happens.
How is it coming along?
How is it coming along?
on hold and buggy at this point, to busy in RL.
I try to work on it every now and than, and need lots of testing on the scene,
make changes, parameters, I can't tell when its done though.

do you have any deadlines? or a must have for this plugin?
hopefully, I have next week more time to fiddle around and share it here or
new thread under a new name, which require still to credit him for the
original base code that is used.
No worries friend, was just checking in!
No worries friend, was just checking in!
it get some new features added and restructure of the parameter.
I keep the scriptcall the same for simplicity, but you might want to add scriptcalls
available for more dynamic lockpicking.

currently, you can set background image (same lock), same lockpick item.

this changes so you can dynamic the item and lockpick slot.
ideal for different checks with a different lock.

but I try later also to add lockpick position, so it wont be always in the middle.

so this take time, but I try to keep the main part function intact first.
for anyone interested in this plugin, the updated plugin has a hold
and slowly continue, but also various fixes along the way.

cleaner params (some removed, other fixed)
some features has issue and added fail safes so this works correctly.

the main fail safe is the gauge, it says 111 disables the gauge, but in fact,
this was not the case as you can have skill level of 150 and it shows the gauge,
even though level 100 is max (this has a failsafe on it).

able to adjust the rotation speed (currently 0.0015) it has a cap so it wont be to fast
or to slow as failsafe

and many more features secured for smoother lockpicking game.

on my TODO list once able.
more lockpicks to use (probably require eventing, but it will work for image change
able to refresh the scene when you have lockpicks so you don't need to restart the scene.
visual gauge system (when enabled) on difficulty (strength), based on 4 colors.
20 levels different red, 10 level different orange, 5 levels different yellow, 0 or over green.
which is optional.

I hope to finish it base around end of this month, the TODO afterwards, most are
equal how they are.
While the plugin base works with failsafes, plugin command is removed.
this is currently hardcoded as it is for some reason not readed.

(don't worry, it will be added later on)

I make a new thread, but there are some issues left to deal with.

refresh scene if you have lockpicks (on 1 side, this works, but cannot rotate!)
opening the scene also directly checks, this is something I need to deal with,
there is a work around, but check later for it.

also make some setup's how to use it effectively (so I need some more testing),
gauge color < 30 = red > 50 orange, > 75 green.
colors can than be defined in the parameter that you want.

you are able to change lockpick item image and item ID, so item names
can be defined in the parameter (base), midgame, for other items/image look.

small and XL image = removed to be 1 image.

ES6 coded, so NWJS probably need to be equal or higher than 0.48.4 in order to work.
feel free to test below those.

new thread will be made once the helpfile is done, and a DEMO set up for it.
but I try to deal with some TODO's and failsafe's.

but there are some open parts (see new thread being made for this, but the main
author needs to be credited as well).

if you want to debug too, tell me and you get the base copy.

param settings are all default and is working at this point.

EDIT:
for a new improved, overhauled version [see here] with more customisable options.
the old one of PXD_Lockpicks works, but has some bugs which is all fixed in mine
version (based of his version, and some portion rewritten).
Hello! i love your plugin, but i encounter a bug. For some reason of setting, I think the gauge bar is gone, and when this happens it is impossible to open the chest, the lockpick always breaks after a while. i set player skill : 100, plugin command : lockpick 5 Wood A.

Ok, nevermind, i set player skill on the plugin tab, but i forgot to set the variable valor in-game xD now it work
Hello! i love your plugin, but i encounter a bug. For some reason of setting, I think the gauge bar is gone, and when this happens it is impossible to open the chest, the lockpick always breaks after a while. i set player skill : 100, plugin command : lockpick 5 Wood A.

Ok, nevermind, i set player skill on the plugin tab, but i forgot to set the variable valor in-game xD now it work
it has some more issues on the gauge checking, if you want a stable release,
check out my lockPickSystem to adjust speed, failsafe on player skill, changeable
lockpicks, and much more.

even keep the scene open if failed if you choose so.

bit less eventing than I previous give, some can still be used if you want too.

but I fix all bugs in the thread though =) (its optional) depends on how heavy
you use this plugin.
it has some more issues on the gauge checking, if you want a stable release,
check out my lockPickSystem to adjust speed, failsafe on player skill, changeable
lockpicks, and much more.

even keep the scene open if failed if you choose so.

bit less eventing than I previous give, some can still be used if you want too.

but I fix all bugs in the thread though =) (its optional) depends on how heavy
you use this plugin.
A link to your version of plugin ? so i cant test it
A link to your version of plugin ? so i cant test it
[link], it require nwjs to be minimum 0.48.4 and PIXI 4.8.9.
higher PIXI or Higher NWJS is unknown, lower will crash.

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