void main()
{
    object oDoor1 = GetObjectByTag("CRYPT_DR_BRONZ");
    object oDoor2 = GetObjectByTag("CRYPT_DR_COPPER");
    object oDoor3 = GetObjectByTag("CRYPT_DR_ELEC");
    object oDoor4 = GetObjectByTag("CRYPT_DR_GOLD");
    object oDoor5 = GetObjectByTag("CRYPT_DR_PLAT");
    object oDoor6 = GetObjectByTag("CRYPT_DR_SILVER");
    object oDoor7 = GetObjectByTag("CRYPT_DR_BLOCK");
    {
    if(!(GetLocked(oDoor1)) && !(GetLocked(oDoor2)) && !(GetLocked(oDoor3)) && !(GetLocked(oDoor4)) && !(GetLocked(oDoor5)) && !(GetLocked(oDoor6)))
    {
    AssignCommand (oDoor7, ActionOpenDoor (oDoor7));
}
}
}
