• 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 "IsHeroInCastle"
    Differences between revisions 6 and 7
    Revision 6 as of 2014-02-10 18:34:38
    Size: 377
    Editor: Inanna
    Comment:
    Revision 7 as of 2014-02-10 18:34:54
    Size: 378
    Editor: Inanna
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 4: Line 4:
    This is a function performed on HeroBean Objects, returns false if specified hero is not in the castle. This is a function performed on !HeroBean Objects, returns false if specified hero is not in the castle.

    Function

    m_city.IsHeroInCastle("HeroString")

    This is a function performed on HeroBean Objects, returns false if specified hero is not in the castle.

    Example

    if m_city.IsHeroInCastle("Trebber") goto checkTrebs

    if the hero named Trebber is in the city then goto the label checkTrebs

    see also:

    AnyIdleHero


    CategoryFunctions

    IsHeroInCastle (last edited 2014-02-10 18:34:54 by Inanna)