void main()
{
  object oPC = GetLastUsedBy();
  if (GetIsPC(oPC))
  {
    string sNumber = GetStringRight(GetTag(OBJECT_SELF),2);
    string sDest = "TopOfPit_" + sNumber;
    object oTopBridge = GetObjectByTag(sDest);
    if (GetIsObjectValid(oTopBridge))
    {
      location lLoc = GetLocation(oTopBridge);
      AssignCommand(oPC,ActionJumpToLocation(lLoc));
    }
  }
}
