Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 10.14 KB | None | 0 0
  1. if(!neverOutnumbered)
  2. {
  3.     if(self.AI_skill > 0.30)
  4.     {
  5.         if(!Backdooring)
  6.         {
  7.             if(self.area == OWN_TEAM_AREAHOME)
  8.             {
  9.                 Outnumbered = no
  10.             }
  11.             else
  12.             {
  13.                 /*Am i outnumbered?*/
  14.                 if(area(2.00, 1.00) has character PLAYERS from ENEMY_TEAM where health percentage >= 30.00 minimum 3)
  15.                 {
  16.                     /*No Teammates?*/
  17.                     if(area(2.00, 1.00) has character PLAYERS from OWN_TEAM where health percentage >= 30.00 minimum 2)
  18.                     {
  19.                         Outnumbered = no
  20.                     }
  21.                     else
  22.                     {
  23.                         /*I am outnumbered*/
  24.                         Outnumbered = yes
  25.                     }
  26.                 }
  27.                 else
  28.                 {
  29.                     /*Am i outnumbered?*/
  30.                     if(area(2.00, 1.00) has character PLAYERS from ENEMY_TEAM where health percentage >= 30.00 minimum 2)
  31.                     {
  32.                         /*No Teammates?*/
  33.                         if(area(2.00, 1.00) has character PLAYERS from OWN_TEAM where health percentage >= 30.00)
  34.                         {
  35.                             Outnumbered = no
  36.                         }
  37.                         else
  38.                         {
  39.                             /*I am outnumbered*/
  40.                             Outnumbered = yes
  41.                         }
  42.                     }
  43.                     else
  44.                     {
  45.                         if(!AttackingBase)
  46.                         {
  47.                             /*they have higher health?*/
  48.                             if(LowerHealth2)
  49.                             {
  50.                                 /*No Teammates?*/
  51.                                 if(area(2.00, 1.00) has character PLAYERS from OWN_TEAM where health percentage >= 30.00 minimum 2)
  52.                                 {
  53.                                     Outnumbered = no
  54.                                 }
  55.                                 else
  56.                                 {
  57.                                     /*I am outnumbered*/
  58.                                     Outnumbered = yes
  59.                                 }
  60.                             }
  61.                             else
  62.                             {
  63.                                 /*they have higher health?*/
  64.                                 if(LowerHealth)
  65.                                 {
  66.                                     /*No Teammates?*/
  67.                                     if(area(2.00, 1.00) has character PLAYERS from OWN_TEAM where health percentage >= 30.00)
  68.                                     {
  69.                                         Outnumbered = no
  70.                                     }
  71.                                     else
  72.                                     {
  73.                                         /*I am outnumbered*/
  74.                                         Outnumbered = yes
  75.                                     }
  76.                                 }
  77.                                 else
  78.                                 {
  79.                                     /*Super droid nearby?*/
  80.                                     if(area(1.00, 0.40) has character CREEPS who CreepDroidSuper from ENEMY_TEAM)
  81.                                     {
  82.                                         /*no allys?*/
  83.                                         if(area(1.00, 0.40) has character PLAYERS from OWN_TEAM where health percentage >= 30.00 ||
  84.                                            area(0.70, 0.40) has character CREEPS who CreepDroidSuper from OWN_TEAM ||
  85.                                            area(0.70, 0.40) has character CREEPS from OWN_TEAM minimum 2 ||
  86.                                            area(0.70, 0.20) has turret from OWN_TEAM)
  87.                                         {
  88.                                             Outnumbered = no
  89.                                         }
  90.                                         else
  91.                                         {
  92.                                             /*I am outnumbered*/
  93.                                             Outnumbered = yes
  94.                                         }
  95.                                     }
  96.                                     else
  97.                                     {
  98.                                         /*Flying droids nearby?*/
  99.                                         if(area(1.00, 0.40) has character CREEPS who CreepDroidFlying from ENEMY_TEAM minimum 2)
  100.                                         {
  101.                                             /*no allys?*/
  102.                                             if(area(1.00, 0.40) has character PLAYERS from OWN_TEAM where health percentage >= 30.00 ||
  103.                                                area(0.70, 0.40) has character CREEPS who CreepDroidSuper from OWN_TEAM ||
  104.                                                area(0.70, 0.40) has character CREEPS from OWN_TEAM minimum 2 ||
  105.                                                area(0.70, 0.20) has turret from OWN_TEAM)
  106.                                             {
  107.                                                 Outnumbered = no
  108.                                             }
  109.                                             else
  110.                                             {
  111.                                                 /*I am outnumbered*/
  112.                                                 Outnumbered = yes
  113.                                             }
  114.                                         }
  115.                                         else
  116.                                         {
  117.                                             /*they have full team?*/
  118.                                             if(area(2.00, 2.00) has character PLAYERS from ENEMY_TEAM where health percentage >= 30.00 minimum 3)
  119.                                             {
  120.                                                 /*they have friends?*/
  121.                                                 if(area(1.00, 1.00) has character CREEPS who CreepDroidFlying from ENEMY_TEAM ||
  122.                                                    area(1.00, 1.00) has character CREEPS who CreepDroidSuper from ENEMY_TEAM ||
  123.                                                    area(1.00, 1.00) has character CREEPS who CreepDroidMelee from ENEMY_TEAM minimum 2 ||
  124.                                                    area(1.00, 1.00) has character CREEPS who CreepMawTurret from ENEMY_TEAM minimum 2 ||
  125.                                                    area(2.00, 1.00) has turret from ENEMY_TEAM)
  126.                                                 {
  127.                                                     /*no allys?*/
  128.                                                     if(area(1.00, 1.00) has character CREEPS who CreepDroidSuper from OWN_TEAM ||
  129.                                                        area(1.00, 1.00) has character CREEPS from OWN_TEAM minimum 2 ||
  130.                                                        area(0.70, 0.20) has turret from OWN_TEAM)
  131.                                                     {
  132.                                                         Outnumbered = no
  133.                                                     }
  134.                                                     else
  135.                                                     {
  136.                                                         /*I am outnumbered*/
  137.                                                         Outnumbered = yes
  138.                                                     }
  139.                                                 }
  140.                                                 else
  141.                                                 {
  142.                                                     Outnumbered = no
  143.                                                 }
  144.                                             }
  145.                                             else
  146.                                             {
  147.                                                 /*Enemy players?*/
  148.                                                 if(area(2.00, 2.00) has character PLAYERS from ENEMY_TEAM where health percentage >= 30.00 minimum 2)
  149.                                                 {
  150.                                                     /*they have friends?*/
  151.                                                     if(area(1.00, 1.00) has character CREEPS who CreepDroidFlying from ENEMY_TEAM ||
  152.                                                        area(1.00, 1.00) has character CREEPS who CreepDroidSuper from ENEMY_TEAM ||
  153.                                                        area(1.00, 1.00) has character CREEPS who CreepDroidMelee from ENEMY_TEAM minimum 2 ||
  154.                                                        area(1.00, 1.00) has character CREEPS who CreepMawTurret from ENEMY_TEAM minimum 2 ||
  155.                                                        area(2.00, 1.00) has turret from ENEMY_TEAM)
  156.                                                     {
  157.                                                         /*no allys?*/
  158.                                                         if(area(2.00, 2.00) has character PLAYERS from OWN_TEAM where health percentage >= 30.00 minimum 2 ||
  159.                                                            area(1.00, 1.00) has character CREEPS who CreepDroidSuper from OWN_TEAM ||
  160.                                                            area(1.00, 1.00) has character CREEPS from OWN_TEAM minimum 2 ||
  161.                                                            area(0.70, 0.20) has turret from OWN_TEAM)
  162.                                                         {
  163.                                                             Outnumbered = no
  164.                                                         }
  165.                                                         else
  166.                                                         {
  167.                                                             /*I am outnumbered*/
  168.                                                             Outnumbered = yes
  169.                                                         }
  170.                                                     }
  171.                                                     else
  172.                                                     {
  173.                                                         Outnumbered = no
  174.                                                     }
  175.                                                 }
  176.                                                 else
  177.                                                 {
  178.                                                     /*Enemy player?*/
  179.                                                     if(area(2.00, 2.00) has character PLAYERS from ENEMY_TEAM where health percentage >= 30.00)
  180.                                                     {
  181.                                                         /*he has friends?*/
  182.                                                         if(area(1.00, 1.00) has character CREEPS who CreepDroidFlying from ENEMY_TEAM ||
  183.                                                            area(1.00, 1.00) has character CREEPS who CreepDroidSuper from ENEMY_TEAM ||
  184.                                                            area(1.00, 1.00) has character CREEPS who CreepDroidMelee from ENEMY_TEAM minimum 2 ||
  185.                                                            area(1.00, 1.00) has character CREEPS who CreepMawTurret from ENEMY_TEAM minimum 2 ||
  186.                                                            area(2.00, 1.00) has turret from ENEMY_TEAM)
  187.                                                         {
  188.                                                             /*no allys?*/
  189.                                                             if(area(2.00, 2.00) has character PLAYERS from OWN_TEAM where health percentage >= 30.00 ||
  190.                                                                area(1.00, 1.00) has character CREEPS who CreepDroidSuper from OWN_TEAM ||
  191.                                                                area(1.00, 1.00) has character CREEPS from OWN_TEAM minimum 2 ||
  192.                                                                area(0.70, 0.20) has turret from OWN_TEAM)
  193.                                                             {
  194.                                                                 Outnumbered = no
  195.                                                             }
  196.                                                             else
  197.                                                             {
  198.                                                                 /*I am outnumbered*/
  199.                                                                 Outnumbered = yes
  200.                                                             }
  201.                                                         }
  202.                                                         else
  203.                                                         {
  204.                                                             Outnumbered = no
  205.                                                         }
  206.                                                     }
  207.                                                     else
  208.                                                     {
  209.                                                         /*don't want to fight around their turret*/
  210.                                                         if(area(2.00, 1.00) has character PLAYERS from ENEMY_TEAM where health percentage >= 30.00 minimum 3)
  211.                                                         {
  212.                                                             if(area(1.40, 1.00) has turret from ENEMY_TEAM clos)
  213.                                                             {
  214.                                                                 /*I am outnumbered*/
  215.                                                                 Outnumbered = yes
  216.                                                             }
  217.                                                             else
  218.                                                             {
  219.                                                                 Outnumbered = no
  220.                                                             }
  221.                                                         }
  222.                                                         else
  223.                                                         {
  224.                                                             /*don't want to fight around their turret*/
  225.                                                             if(area(2.00, 1.00) has character PLAYERS from ENEMY_TEAM where health percentage >= 30.00 minimum 2)
  226.                                                             {
  227.                                                                 if(area(1.40, 1.00) has turret from ENEMY_TEAM clos)
  228.                                                                 {
  229.                                                                     /*players*/
  230.                                                                     if(area(2.00, 2.00) has character PLAYERS from OWN_TEAM where health percentage >= 30.00 minimum 2)
  231.                                                                     {
  232.                                                                         Outnumbered = no
  233.                                                                     }
  234.                                                                     else
  235.                                                                     {
  236.                                                                         /*I am outnumbered*/
  237.                                                                         Outnumbered = yes
  238.                                                                     }
  239.                                                                 }
  240.                                                                 else
  241.                                                                 {
  242.                                                                     Outnumbered = no
  243.                                                                 }
  244.                                                             }
  245.                                                             else
  246.                                                             {
  247.                                                                 /*don't want to fight around their turret*/
  248.                                                                 if(area(2.00, 1.00) has character PLAYERS from ENEMY_TEAM where health percentage >= 30.00)
  249.                                                                 {
  250.                                                                     if(area(1.40, 1.00) has turret from ENEMY_TEAM clos)
  251.                                                                     {
  252.                                                                         /*players*/
  253.                                                                         if(area(2.00, 1.00) has character PLAYERS from OWN_TEAM where health percentage >= 30.00)
  254.                                                                         {
  255.                                                                             Outnumbered = no
  256.                                                                         }
  257.                                                                         else
  258.                                                                         {
  259.                                                                             /*I am outnumbered*/
  260.                                                                             Outnumbered = yes
  261.                                                                         }
  262.                                                                     }
  263.                                                                     else
  264.                                                                     {
  265.                                                                         Outnumbered = no
  266.                                                                     }
  267.                                                                 }
  268.                                                                 else
  269.                                                                 {
  270.                                                                     /*Normal droids nearby?*/
  271.                                                                     if(area(1.00, 1.00) has character CREEPS who CreepDroidMelee from ENEMY_TEAM minimum 2)
  272.                                                                     {
  273.                                                                         if(area(1.00, 1.00) has character PLAYERS OR CREEPS from OWN_TEAM ||
  274.                                                                            area(0.70, 0.20) has turret from OWN_TEAM)
  275.                                                                         {
  276.                                                                             Outnumbered = no
  277.                                                                         }
  278.                                                                         else
  279.                                                                         {
  280.                                                                             /*I am outnumbered*/
  281.                                                                             Outnumbered = yes
  282.                                                                         }
  283.                                                                     }
  284.                                                                     else
  285.                                                                     {
  286.                                                                         Outnumbered = no
  287.                                                                     }
  288.                                                                 }
  289.                                                             }
  290.                                                         }
  291.                                                     }
  292.                                                 }
  293.                                             }
  294.                                         }
  295.                                     }
  296.                                 }
  297.                             }
  298.                         }
  299.                     }
  300.                 }
  301.             }
  302.         }
  303.         else
  304.         {
  305.             Outnumbered = no
  306.         }
  307.     }
  308.     else
  309.     {
  310.         Outnumbered = no
  311.     }
  312. }
  313. else
  314. {
  315.     Outnumbered = no
  316. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement