home *** CD-ROM | disk | FTP | other *** search
- //////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 1997-99 Pandemic Studios
- //
- // Dark Reign II
- //
-
- CreateObjectType("objective_cars", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TRUE");
- Action()
- {
- ExecuteScript("car1", "squad.move.tagtotrail")
- {
- Op("%.tag", "=", "car1");
- Op("%.trail", "=", "car2");
- }
- ExecuteScript("car2", "squad.move.tagtotrail")
- {
- Op("%.tag", "=", "car2");
- Op("%.trail", "=", "car2");
- }
- }
- }
- }
-
-
-
- CreateObjectType("objective_attack_base", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("HaveTag")
- {
- Tag("rioters")
- {
- Operator("<");
- Amount(1);
- }
- }
- Action()
- {
- ExecuteScript("attackers", "squad.move.tagtoregion")
- {
- Op("%.tag", "=", "attackers");
- Op("%.region", "=", "attackers");
- }
- NewObjective("attackers_2");
- }
- }
- }
-
- CreateObjectType("attackers_2", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("InRegion")
- {
- Region("complex");
- Tag("jda_patrol")
- {
- Amount(0);
- Operator(">");
- }
- Team("JDA");
- }
- Action()
- {
- NewObjective("move_cineractive_01");
- ExecuteScript("attackers_2", "squad.move.tagtoregion")
- {
- Op("%.tag", "=", "attackers_2");
- Op("%.region", "=", "complex");
- }
- }
- }
- }
-
- CreateObjectType("move_cineractive_01", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("HaveType")
- {
- Type("jda.unit.collector")
- {
- Amount(0);
- Operator(">");
- }
- Team("JDA");
- }
- Action()
- {
- NewObjective("move_cineractive_02");
- ExecuteScript("start_base_03", "squad.move.tagtoregion")
- {
- Op("%.tag", "=", "base_03");
- Op("%.region", "=", "base_03");
- }
- }
- }
- }
-
- CreateObjectType("move_cineractive_02", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("Timer")
- {
- Time(1);
- }
- Action()
- {
- NewObjective("move_cineractive_back");
- ExecuteScript("start_base_01", "squad.move.tagtoregion")
- {
- Op("%.tag", "=", "base_01");
- Op("%.region", "=", "base_01");
- }
- ExecuteScript("start_base_02", "squad.move.tagtoregion")
- {
- Op("%.tag", "=", "base_02");
- Op("%.region", "=", "base_02");
- }
- }
- }
- }
-
-
- CreateObjectType("move_cineractive_back", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("Timer")
- {
- Time(5);
- }
- Action()
- {
- ExecuteScript("end_base_01", "squad.move.tagtoregion")
- {
- Op("%.tag", "=", "base_01");
- Op("%.region", "=", "strike_1");
- }
- ExecuteScript("end_base_02", "squad.move.tagtoregion")
- {
- Op("%.tag", "=", "base_02");
- Op("%.region", "=", "strike_2");
- }
- ExecuteScript("end_base_03", "squad.move.tagtoregion")
- {
- Op("%.tag", "=", "base_03");
- Op("%.region", "=", "strike_3");
- }
- }
- }
- }
-