Script: _closegladdoors2
void main()
{
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "ArenaKey")== OBJECT_INVALID)
return;
}
object oTarget12 = GetObjectByTag("GladiatorDoor12");
object oTarget1 = GetObjectByTag("GladiatorDoor1");
object oTarget2 = GetObjectByTag("GladiatorDoor2");
object oTarget3 = GetObjectByTag("GladiatorDoor3");
object oTarget4 = GetObjectByTag("GladiatorDoor4");
object oTarget5 = GetObjectByTag("GladiatorDoor5");
object oTarget6 = GetObjectByTag("GladiatorDoor6");
object oTarget7 = GetObjectByTag("GladiatorDoor7");
object oTarget8 = GetObjectByTag("GladiatorDoor8");
object oTarget9 = GetObjectByTag("GladiatorDoor9");
object oTarget10 = GetObjectByTag("GladiatorDoor10");
object oTarget11 = GetObjectByTag("GladiatorDoor11");
ActionSpeakString("Closing cell doors.");
ActionSpeakString("Contestants, you have 15 seconds to pick a cell. Anyone not in a cell will be removed.", TALKVOLUME_SHOUT);
DelayCommand(15.0, AssignCommand(oTarget1, ActionCloseDoor(oTarget1)));
DelayCommand(15.0, AssignCommand(oTarget2, ActionCloseDoor(oTarget2)));
DelayCommand(15.0, AssignCommand(oTarget3, ActionCloseDoor(oTarget3)));
DelayCommand(15.0, AssignCommand(oTarget4, ActionCloseDoor(oTarget4)));
DelayCommand(15.0, AssignCommand(oTarget5, ActionCloseDoor(oTarget5)));
DelayCommand(15.0, AssignCommand(oTarget6, ActionCloseDoor(oTarget6)));
DelayCommand(15.0, AssignCommand(oTarget7, ActionCloseDoor(oTarget7)));
DelayCommand(15.0, AssignCommand(oTarget8, ActionCloseDoor(oTarget8)));
DelayCommand(15.0, AssignCommand(oTarget9, ActionCloseDoor(oTarget9)));
DelayCommand(15.0, AssignCommand(oTarget10, ActionCloseDoor(oTarget10)));
DelayCommand(15.0, AssignCommand(oTarget11, ActionCloseDoor(oTarget11)));
DelayCommand(15.0, AssignCommand(oTarget12, ActionCloseDoor(oTarget12)));
DelayCommand(1.0, SetLocked(oTarget1, TRUE));
DelayCommand(1.0, SetLocked(oTarget2, TRUE));
DelayCommand(1.0, SetLocked(oTarget3, TRUE));
DelayCommand(1.0, SetLocked(oTarget4, TRUE));
DelayCommand(1.0, SetLocked(oTarget5, TRUE));
DelayCommand(1.0, SetLocked(oTarget6, TRUE));
DelayCommand(1.0, SetLocked(oTarget7, TRUE));
DelayCommand(1.0, SetLocked(oTarget8, TRUE));
DelayCommand(1.0, SetLocked(oTarget9, TRUE));
DelayCommand(1.0, SetLocked(oTarget10, TRUE));
DelayCommand(1.0, SetLocked(oTarget11, TRUE));
DelayCommand(1.0, SetLocked(oTarget12, TRUE));
}