• 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 "SendTroops"
    Differences between revisions 1 and 2
    Revision 1 as of 2012-08-25 23:57:00
    Size: 3369
    Editor: Inanna
    Comment:
    Revision 2 as of 2012-09-17 20:11:25
    Size: 3369
    Editor: Susannah
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 7: Line 7:
    A city can have as many sendtroop goal lines as desired, with each one containing a different troop type and/or city to send troops to. The city to send to parameter can be written as coordinates (111,222) or the city name if same account (!OtherCity) or to encompass any city (any) or as multiple city names or coordinates seperated by the | symbol (City1|City2|City3 or 111,222|111,223|111,224). A city can have as many sendtroop goal lines as desired, with each one containing a different troop type and/or city to send troops to. The city to send to parameter can be written as coordinates (111,222) or the city name if same account (!OtherCity) or to encompass any city (any) or as multiple city names or coordinates separated by the | symbol (City1|City2|City3 or 111,222|111,223|111,224).
    Line 19: Line 19:
    In the 5th example above, if !ThisCity has more than 300k archers, then it will send all archers over that to 111,222, regardless of how many 111,222 has and how many it sends at a time, as long as the minimum send is at least 10k archers. In the 5th example above, if !ThisCity has more than 300k archers, then it will send all archers over that to 111,222, regardless of how many 111,222 has and how many it sends at a time, as long as the minimum sent is at least 10k archers.

    Usage:

    sendtroops coords trooptype local_min remote_min quantity

    Example:

    sendtroops OtherCity|AnotherCity archer 300k 200k 10k
    sendtroops 111,222 archer 300k -1 10k
    sendtroops OtherCity archer 300k 200k -1
    sendtroops OtherCity archer -1 200k 10k
    sendtroops 111,222 archer 300k -2 10k

    This goal will tell the bot to automatically send troops from this city to another one when it reaches an amount over what you specify and if the other city has an amount under what you specify. This goal can be useful to constantly restock another city that farms npc10s, or have several building/feeder cities that build troops for a war city to accumulate.

    A city can have as many sendtroop goal lines as desired, with each one containing a different troop type and/or city to send troops to. The city to send to parameter can be written as coordinates (111,222) or the city name if same account (OtherCity) or to encompass any city (any) or as multiple city names or coordinates separated by the | symbol (City1|City2|City3 or 111,222|111,223|111,224).

    As with the sendresources and requestresources directives, sendtroops and requesttroops are also able to use -1 as a parameter. The -2 parameter can be used for the remote quantity to force the bot to behave more like the older keeptroop goal (sending quantities of at least the amount specified, but more than it if possible).

    In the 1st example above, if ThisCity has more than 300k archers, and either OtherCity or AnotherCity has below 200k archers, then ThisCity will send OtherCity or AnotherCity archers in increments of 10k. Note that ThisCity would need to have 310k archers to begin with before sending 10k away, to avoid putting itself below the 300k minimum.

    In the 2nd example above, if ThisCity has more than 300k archers, then it will send in increments of 10k to 111,222... regardless of how many archers 111,222 has, as long as ThisCity doesn't fall below 300k.

    In the 3rd example above, if ThisCity has more than 300k archers, and OtherCity has below 200k archers, then ThisCity will send OtherCity as many archers as needed to bring OtherCity up to 200k, while keeping ThisCity above 300k.

    In the 4th example above, if OtherCity has below 200k archers, then ThisCity will send it archers in 10k increments until it gets above 200k, regardless of how many archers ThisCity has.

    In the 5th example above, if ThisCity has more than 300k archers, then it will send all archers over that to 111,222, regardless of how many 111,222 has and how many it sends at a time, as long as the minimum sent is at least 10k archers.


    CategoryAllGoals CategoryTroopGoals

    SendTroops (last edited 2014-09-01 20:41:54 by Inanna)