Monday, June 11, 2012

Advanced Platform Tutorials - Combination Locks

How to Make a Combination Lock for Doors in Ace of Spades - SuperCool Build 
The Door:

"/p new door" to enter platform mode to place a platform named 'door'. 
Place the blocks that will make up the door. (I prefer 1 or 2 blocks wide. Fewer is better to prevent lag.) 
"/p" to save the platform dimensions. 
"/b new doorknob" Allows you to place a button named 'doorknob'. 
Place the 'doorknob' button somewhere convenient. 
"/ac set height 3
Hit the 'door' platform, then hit the 'doorknob' button. (Pay attention to the messages that are displayed as you are working to be sure it worked) 
"/ac add height 0
Hit the 'door' platform, then hit the 'doorknob' button. 

Now you have a working door without the lock. You can test it if you like by hitting the 'doorknob' button.  If it opens and closes, you did it!  If not, start over.
The Combination Lock: 

For the sake of simplicity, I will tell you one way to connect a single platform as a combination lock.  This process can be repeated for as many digits in the combination as you like.

"/p new count1" to enter platform mode to place a platform named 'count1'. 
Place the blocks that will make up the lock.  Only 1 block wide. Anything bigger is a waste.) 
"/p" to save the platform dimensions. 
"/b new up1" Allows you to place a button named 'up1'. 
Place the 'up1' button somewhere that makes sense.
"/ac set raise 1
Hit the 'count1' platform, then hit the 'up1' button.
"/b new down1" Allows you to place a button named 'down1'. 
Place the 'down1 button.
"/ac set lower 1
Hit the 'count1' platform, then hit the 'down1' button.

Repeat for as many digits as you would like in your combination.
Now you have a platform or many platforms that can be raised and lowered to any height.  All we have to do is set the trigger to the desired height for each platform.  These heights will be the values that make up your combination.
Final Step:

"/t add height 3"
Hit the 'count1' platform then hit the 'doorknob' button. 
Repeat for as many 'count' platforms as you have created, changing the height value for each one.  When you are done, the door will only open if your 'count' platforms are at ALL of the designated heights.

Now hide your lock platform with a cover you will be able to find again.
*Extra Credit:
For 5 bonus points and the Senior Locksmith Achievement, make the lock work only when the door is closed and make a Reset Button for all of the 'count' platforms.

No comments:

Post a Comment