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 04:07] – [Set the following props in the ship's parent 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 6: Line 6:
 The DBREF# for the exit leading FROM the Airlock Room to your ship's EVA Prep Room goes in this prop: // The DBREF# for the exit leading FROM the Airlock Room to your ship's EVA Prep Room goes in this prop: //
    
-@propset here=dbref:_reg/indoor:#<You go inside through this exit>+''@propset here=dbref:_reg/indoor:#<You go inside through this exit>''
    
 //The DBREF# for the exit leading TO the Airlock Room from your ship's EVA Prep Room goes in this prop:// //The DBREF# for the exit leading TO the Airlock Room from your ship's EVA Prep Room goes in this prop://
    
-@propset here=dbref:_reg/outdoor:#<You go outside through this exit>+''@propset here=dbref:_reg/outdoor:#<You go outside through this exit>''
  
  
Line 23: Line 23:
 @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?,entryway},unlock, lock} the security seal on the entryway, but doesn't have the security card for it.+@propset $tmp/exit1=str:/_/ofl:tries to tamper with the security seal on the entryway, 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 33: Line 33:
 @propset $tmp/exit1=str:/do_unlock:{null:{store:0,_/secured?,$indoor}{store:0,_/secured?,$outdoor}} @propset $tmp/exit1=str:/do_unlock:{null:{store:0,_/secured?,$indoor}{store:0,_/secured?,$outdoor}}
    
-@propset $tmp/exit1=str:/lock:{if:{exec:_/secured?,$indoor},The entryway door already has a security seal., You lock the entryway door with a security seal.{exec:do_lock}{null:{otell:{name:me} locks the security seal on the entryway.}}}+@propset $tmp/exit1=str:/lock:{if:{exec:_/secured?,$indoor},The entryway door already has a security seal., You lock the entryway door with a security seal.{exec:do_lock}{null:{otell:{name:me} locks the security seal on the entryway door.}}}
    
 @propset $tmp/exit1=str:/unlock:{if:{exec:_/secured?,$indoor},You remove the security seal and unlock the entryway door.{null:{otell:{name:me} unlocks the security seal on the entryway.}}{exec:do_unlock},The entryway door is already unlocked.} @propset $tmp/exit1=str:/unlock:{if:{exec:_/secured?,$indoor},You remove the security seal and unlock the entryway door.{null:{otell:{name:me} unlocks the security seal on the entryway.}}{exec:do_unlock},The entryway door is already unlocked.}
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 59: Line 59:
 @propset $tmp/exit1=str:/lock:{if:{exec:_/secured?,$outdoor},The airlock door already has a security seal., You lock the airlock door with a security seal.{exec:do_lock}{null:{otell:{name:me} locks the security seal on the airlock.}}} @propset $tmp/exit1=str:/lock:{if:{exec:_/secured?,$outdoor},The airlock door already has a security seal., You lock the airlock door with a security seal.{exec:do_lock}{null:{otell:{name:me} locks the security seal on the airlock.}}}
    
-@propset $tmp/exit1=str:/unlock:{if:{exec:_secured?,outdoor},You remove the security seal and unlock the airlock door.{null:{otell:{name:me} unlocks the security seal on the airlock.}}{exec:do_unlock},The airlock door is already unlocked.}+@propset $tmp/exit1=str:/unlock:{if:{exec:_/secured?,$outdoor},You remove the security seal and unlock the airlock door.{null:{otell:{name:me} unlocks the security seal on the airlock.}}{exec:do_unlock},The airlock door is already unlocked.}
    
 ===== 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