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.

Platform Tutorial - Simple Door Locks

How to Make a Simple Locking Door 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.

You will be doing almost exactly the same thing for the 'lock' with different values for the height and different names for the platform and button. Then we will connect the two with a height trigger.

I suggest you dig out a small hole to hide the 'lock' platform near the door.  Make some extra room so the color of the platform doesn't change later. It will lose its color if it is surrounded on all 6 sides. It will help you find it again if there's ever a problem with it getting stuck.

The Lock:

"/p new lock" to enter platform mode to place a platform named 'lock'. 
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 deadbolt" Allows you to place a button named 'deadbolt'. 
Place the 'deadbolt' button somewhere you can find it.
"/ac set height 2
Hit the 'lock' platform, then hit the 'deadbolt' button.
"/ac add height 1
Hit the 'lock' platform, then hit the 'deadbolt' button. 

Now you have a lock mechanism.  The only thing left to do is add the 'lock' platform height as a trigger for the existing 'doorknob' button to work.

Final Step:

"/t add height 2"
Hit the 'lock' platform then hit the 'doorknob' button.
Done!

Now hide your lock platform with a cover you will be able to find again.

*Extra Credit:
 For 5 bonus points and the Locksmith Achievement, make the lock work only when the door is closed!

Watch the Tutorial Video on Twitch.tv - Commands and explanation in fullscreen.