home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 41 / CD Expert nº 41.iso / DReign2 / DR2Demo.exe / data1.cab / Files / missions / demo / Demo Mission 1.zwp / objectives_ai.cfg < prev    next >
Encoding:
Text File  |  2000-09-01  |  3.2 KB  |  166 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 1997-99 Pandemic Studios
  4. //
  5. // Dark Reign II
  6. //
  7.  
  8. CreateObjectType("objective_cars", "Objective")
  9. {
  10.   GameObj();
  11.   ObjectiveObj()
  12.   {
  13.     Condition("TRUE");
  14.     Action()
  15.     {
  16.       ExecuteScript("car1", "squad.move.tagtotrail")
  17.       {
  18.         Op("%.tag", "=", "car1");
  19.         Op("%.trail", "=", "car2");
  20.       }
  21.       ExecuteScript("car2", "squad.move.tagtotrail")
  22.       {
  23.         Op("%.tag", "=", "car2");
  24.         Op("%.trail", "=", "car2");
  25.       }
  26.     }
  27.   }
  28. }
  29.  
  30.  
  31.  
  32. CreateObjectType("objective_attack_base", "Objective")
  33. {
  34.   GameObj();
  35.   ObjectiveObj()
  36.   {
  37.     Condition("HaveTag")
  38.     {
  39.       Tag("rioters")
  40.       {
  41.         Operator("<");
  42.         Amount(1);
  43.       }
  44.     }
  45.     Action()
  46.     {
  47.       ExecuteScript("attackers", "squad.move.tagtoregion")
  48.       {
  49.         Op("%.tag", "=", "attackers");
  50.         Op("%.region", "=", "attackers");
  51.       }
  52.       NewObjective("attackers_2");
  53.     }
  54.   }
  55. }
  56.  
  57. CreateObjectType("attackers_2", "Objective")
  58. {
  59.   GameObj();
  60.   ObjectiveObj()
  61.   {
  62.     Condition("InRegion")
  63.     {
  64.       Region("complex");
  65.       Tag("jda_patrol")
  66.       {
  67.         Amount(0);
  68.         Operator(">");
  69.       }
  70.       Team("JDA");
  71.     }
  72.     Action()
  73.     {
  74.       NewObjective("move_cineractive_01");
  75.       ExecuteScript("attackers_2", "squad.move.tagtoregion")
  76.       {
  77.         Op("%.tag", "=", "attackers_2");
  78.         Op("%.region", "=", "complex");
  79.       }
  80.     }
  81.   }
  82. }
  83.  
  84. CreateObjectType("move_cineractive_01", "Objective")
  85. {
  86.   GameObj();
  87.   ObjectiveObj()
  88.   {
  89.     Condition("HaveType")
  90.     {
  91.       Type("jda.unit.collector")
  92.       {
  93.         Amount(0);
  94.         Operator(">");
  95.       }
  96.       Team("JDA");
  97.     }
  98.     Action()
  99.     {
  100.       NewObjective("move_cineractive_02");
  101.       ExecuteScript("start_base_03", "squad.move.tagtoregion")
  102.       {
  103.         Op("%.tag", "=", "base_03");
  104.         Op("%.region", "=", "base_03");
  105.       }
  106.     }
  107.   }
  108. }
  109.  
  110. CreateObjectType("move_cineractive_02", "Objective")
  111. {
  112.   GameObj();
  113.   ObjectiveObj()
  114.   {
  115.     Condition("Timer")
  116.     {
  117.       Time(1);
  118.     }
  119.     Action()
  120.     {
  121.       NewObjective("move_cineractive_back");
  122.       ExecuteScript("start_base_01", "squad.move.tagtoregion")
  123.       {
  124.         Op("%.tag", "=", "base_01");
  125.         Op("%.region", "=", "base_01");
  126.       }
  127.       ExecuteScript("start_base_02", "squad.move.tagtoregion")
  128.       {
  129.         Op("%.tag", "=", "base_02");
  130.         Op("%.region", "=", "base_02");
  131.       }
  132.     }
  133.   }
  134. }
  135.  
  136.  
  137. CreateObjectType("move_cineractive_back", "Objective")
  138. {
  139.   GameObj();
  140.   ObjectiveObj()
  141.   {
  142.     Condition("Timer")
  143.     {
  144.       Time(5);
  145.     }
  146.     Action()
  147.     {
  148.       ExecuteScript("end_base_01", "squad.move.tagtoregion")
  149.       {
  150.         Op("%.tag", "=", "base_01");
  151.         Op("%.region", "=", "strike_1");
  152.       }
  153.       ExecuteScript("end_base_02", "squad.move.tagtoregion")
  154.       {
  155.         Op("%.tag", "=", "base_02");
  156.         Op("%.region", "=", "strike_2");
  157.       }
  158.       ExecuteScript("end_base_03", "squad.move.tagtoregion")
  159.       {
  160.         Op("%.tag", "=", "base_03");
  161.         Op("%.region", "=", "strike_3");
  162.       }
  163.     }
  164.   }
  165. }
  166.