• 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
    • Diff for "Train"
    Differences between revisions 8 and 9
    Revision 8 as of 2012-10-21 15:07:48
    Size: 2505
    Editor: Inanna
    Comment:
    Revision 9 as of 2012-10-24 20:33:02
    Size: 2515
    Editor: Romulus
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 1: Line 1:
    ||<tablebgcolor="#F9F9F9" tablestyle="margin:1em 1em 1em 0px;border-style:solid;border-color:rgb(170, 170, 170);color:rgb(0, 0, 0);font-family:sans-serif;font-size:13px;line-height:19.5px;text-align:start; " tableclass="wikitable"#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Usage: ||<width="400pt" style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">train <type:quantity> <hero> <barracks_id|all|idle> <minquantity> ||
    ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">train a:5000<<BR>>train w:25000 atk<<BR>>train a:999999 ace idle 20000<<BR>>train w:25000 atk 18 25000 ||
    ||<tablebgcolor="#F9F9F9" tablestyle="margin:1em 1em 1em 0px;border-style:solid;border-color:rgb(170, 170, 170);color:rgb(0, 0, 0);font-family:sans-serif;font-size:13px;line-height:19.5px;text-align:start;  " tableclass="wikitable"#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;  ">Usage: ||<width="400pt" style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;  ">train <type:quantity> <hero> <barracks_id|all|idle> <minquantity> ||
    ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;  ">Example: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">train a:5000<<BR>>train w:25000 atk<<BR>>train a:999999 ace idle 20000<<BR>>train w:25000 atk 18 25000 ||
    Line 26: Line 26:
    Line 27: Line 28:
    CategoryTroop ----
    ScriptTroop

    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)