• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages

    Usage:

    train <type:quantity> <hero> <barracks_id|all|idle> <minquantity>

    Example:

    train a:5000
    train w:25000 atk
    train a:999999 ace idle 20000
    train w:25000 atk 18 25000

    This command is used to queue troops in the barracks.

    • Troop types cannot be combined.
    • If the quantity is more than you can actually build based on res or pop, it will build as many as it can.
    • The hero can be "any", "atk" (for the best available attack hero), or named.
    • You can specify a barrack by specific id# (the #s can be found in the production tab), or use "all" or "idle" barracks only.
    • The minquantity ensures that at least that amount is trained, or none at all will be.

    Not all parameters are required. Setting production before and after is recommended, but there is no need to manually change the mayor. The bot will temporarily assign the hero indicated to train, then reassign the original mayor when done. Using all or idle will perform the same as the client, not distribute blocks of 500 warriors into 9 slots of 8 different barracks. In all instances training via script uses no more than 1 barracks slot per barrack per train command.

    In the 1st example above, the bot will train 5k archers in all barracks.

    In the 2nd example above, the bot will train train 25k warriors with the best attack hero in all barracks.

    In the 3rd example above, the bot will train as many archers as possible, but not less than 20k, in all idle barracks with Ace as mayor.

    In the 4th example above, the bot will train 25k warriors in barrack #18 with the best attack hero, and will not queue unless it can do all 25k at once.

    The values for such goals as troopqueuetime, troopsusepopmax, troopsusereserved, and troopincrement will be ignored for the Train script command.

    Typing train help in the script window will give further examples for usage of this command.



    ScriptTroop

    Train (last edited 2012-10-24 20:33:02 by Romulus)