This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Mithy

By: a guest on Nov 28th, 2010  |  syntax: Lua  |  size: 1.34 KB  |  views: 65  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     # Additional troops - AI will now attempt to match troop upgrades with their opponent even before WR 8
  2.     # This keeps AI games from becoming too one-sided once one team gets priests+
  3.     # Priests
  4.     CTroopNumber03 = {
  5.          PriorityFunction = function(unit)
  6.             if EnemyHasUpgrade(unit, 'CTroopNumber03') or unit:GetAIBrain().Score.WarRank >= 8 then
  7.                 return 500
  8.             else
  9.                 return 0
  10.             end
  11.         end,
  12.     },
  13.     # Angels
  14.     CTroopNumber05 = {
  15.          PriorityFunction = function(unit)
  16.             if EnemyHasUpgrade(unit, 'CTroopNumber05') or unit:GetAIBrain().Score.WarRank >= 8 then
  17.                 return 500
  18.             else
  19.                 return 0
  20.             end
  21.         end,
  22.     },
  23.     # Catapults
  24.     CTroopNumber04 = {
  25.          PriorityFunction = function(unit)
  26.             if EnemyHasUpgrade(unit, 'CTroopNumber04') or unit:GetAIBrain().Score.WarRank >= 8 then
  27.                 return 500
  28.             else
  29.                 return 0
  30.             end
  31.         end,
  32.     },
  33.     # Giants
  34.     CTroopNumber06 = {
  35.          PriorityFunction = function(unit)
  36.             if EnemyHasUpgrade(unit, 'CTroopNumber06') or unit:GetAIBrain().Score.WarRank >= 8 then
  37.                 return 500
  38.             else
  39.                 return 0
  40.             end
  41.         end,
  42.     },
clone this paste RAW Paste Data