Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
LUA Customizable 1x1 4-digit Pin Lock Microcontroller [2x2]
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Creative
Tags: v0.10.14
File Size
Posted
Updated
330.339 KB
15 Apr, 2020 @ 8:41pm
17 Apr, 2020 @ 9:39am
3 Change Notes ( view )

Subscribe to download
LUA Customizable 1x1 4-digit Pin Lock Microcontroller [2x2]

Description
I couldn't find any code lock microcontrollers on the workshop that fit on a 1x1 screen, so I took the time to make one.

I always have issues with microcontrollers that are confusing and hard to connect up to everything, so I made this pretty simple with only the key features.

You can change the color of the code and the buttons in the microcontroller, and you can set the code from an exterior node or the interior property number.

You can customize the output pulse length from the property menu, and when you get the code correct, the little rectangle at the top of the screen will flash green or red, depending on if you entered the correct code or not.

The buttons aren't labeled, but they're in a standard order:



Please credit me if you use this in a creation, thanks!

I hope this is useful!

For future updates and quick notice when I post new creations, hit the follow button!

If you enjoy this creation, please rate it up!
9 Comments
optimistic  [author] 31 Jul, 2020 @ 10:13am 
You can't see the numbers on on the buttons themselves, but you should be able to see the numbers you've imputed into the system on the display. You can customize the output pulse in the controller or add a capacitor if you want to make a door hold open for a while.
Feirefiz 27 Jul, 2020 @ 2:11pm 
how do i see the numbers on the display and how do i make it hold open for a period of time
optimistic  [author] 1 May, 2020 @ 7:53pm 
You have to understand hexadecimals to figure it out on your own, but it's often just easier to look up the hex code for the color you want. If you do decide to do it on your own, just know it's set up like this: RRGGBB.
Bokatch 1 May, 2020 @ 7:47pm 
im to stupid how to change colors?
Luthous 18 Apr, 2020 @ 10:26am 
Is there any way it can be made to something like 5 seconds? Instead? I vejust changed the slider to 5 and its still too short?
optimistic  [author] 18 Apr, 2020 @ 9:37am 
Yes, that's exactly what I did. You can easily change the output pulse with a property slider, but you may need to update the mic you're using because it was an edit I made fairly recently.
Luthous 18 Apr, 2020 @ 9:34am 
Did you manage to add a timer? As im struggling to edit it to make it longer than a split second
optimistic  [author] 17 Apr, 2020 @ 9:30am 
Yeah, thanks for the suggestion! I'll add a timer and a property for that.
Megahurts 17 Apr, 2020 @ 4:17am 
Nice. Works good. Any way to make the pulse length a property? Would be handy. My lockable button kept closing before I could click on it. Not a big deal to change it in the MC itself but it would be a nice feature...
Thanks for sharing regardless, I plan to use it on a build or two :)