User Tools

Site Tools


secure_airlocks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
secure_airlocks [2011/06/13 05:13] – [Copy and paste the following code inside your airlock room] hagalazsecure_airlocks [2011/06/13 05:22] – [Creating the security code] hagalaz
Line 1: Line 1:
-====== Draft page, the following code needs to be debugged. **DO NOT USE!** ======+This code
    
 ===== Set the following props in the ship's parent room ===== ===== Set the following props in the ship's parent room =====
Line 47: Line 47:
 @propset $tmp/exit1=str:/_/fl:You do not have the security card needed to operate this control. @propset $tmp/exit1=str:/_/fl:You do not have the security card needed to operate this control.
    
-@propset $tmp/exit1=str:/_/ofl:tries to {if:{exec:_/secured?,airlock},unlock,lock} the security seal on the airlock, but doesn't have the security card for it.+@propset $tmp/exit1=str:/_/ofl:tries to tamper with the security seal on the airlock, but doesn't have the security card for it.
    
 @propset $tmp/exit1=str:/_/sc:{if:{&arg},{if:{prop:{&arg},this},{exec:{&arg},this},{exec:_bad}},{exec:_bad}} @propset $tmp/exit1=str:/_/sc:{if:{&arg},{if:{prop:{&arg},this},{exec:{&arg},this},{exec:_bad}},{exec:_bad}}
Line 62: Line 62:
    
 ===== Creating the security code ===== ===== Creating the security code =====
-Once this is done, you can then use any kind of lock on the SECURE actions. You can lock them to specific people, or to key card objects, or to properties -- just as you would any normal action -- an only those who pass the lock test will be able to secure or release the door.+Once this is done, you can then use any kind of lock on the **secure** actions. You can lock them to specific people, or to key card objects, or to properties -- just as you would any normal action -- an only those who pass the lock test will be able to secure or release the door.
    
 +To encode security keycards, just set a prop on them, such as "**_lock:yes**" Once you do that, you can lock the "**secure**" action using the same prop, like this: "**@lock secure=_lock:yes**" You can use anything you want as a prop for the lock string, as long as it follows the "**<blurb>:<blurb>**" format.
 +
  
secure_airlocks.txt · Last modified: 2011/06/19 08:30 by hagalaz