• 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 "AnyIdleHero"
    Differences between revisions 3 and 4
    Revision 3 as of 2013-08-09 04:36:15
    Size: 727
    Editor: tech
    Comment:
    Revision 4 as of 2013-08-09 04:44:18
    Size: 799
    Editor: tech
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 16: Line 16:
    see also: '''see also: '''
    Line 21: Line 21:
    CategoryFunctions CategoryFunctions [[http://guide.neatportal.com/wiki/HeroBean|HeroBean]]

    Function

    m_city.AnyIdleHero("HeroString")

    returns true if specified hero string matches any idle hero in the castle

    Example

    targetValley = ("123,456")
    
    if m_city.AnyIdleHero("any:att>100,att<300") if city.troops.archer>100k execute "attack "+targetValley+" any:att>100,att<300 a:25k,p:1,sw:1,c:1,cata:1,s:1"

    if there is a hero matching the criteria available, and city has more than 100k arch, send it marching on the valley....

    assumes you have the layers constantly being replaced, it could hang waiting for missing layer... so if you use scouts to transport res, leave them out of the march.

    see also:

    http://guide.neatportal.com/wiki/IsHeroInCastle


    CategoryFunctions HeroBean

    AnyIdleHero (last edited 2014-02-10 18:34:23 by Inanna)