• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • 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 "Army"
    Differences between revisions 1 and 29 (spanning 28 versions)
    Revision 1 as of 2012-10-23 13:06:30
    Size: 50
    Editor: Inanna
    Comment:
    Revision 29 as of 2012-10-25 22:43:23
    Size: 2533
    Editor: Inanna
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 1: Line 1:
    Describe ArmyVars here. The Army objects can reference details about the armies marching to or from your cities.

    '''Incoming enemy armies can be referenced as: '''

     . ''m_city.cityManager.enemyArmies[x].property '''or''' city.enemyArmies[x].property''

    '''Incoming friendly armies can be referenced as: '''

     . ''m_city.cityManager.friendlyArmies[x].property '''or''' city.friendlyArmies[x].property''

    '''Your own armies can be referenced as: '''

     . ''m_city.cityManager.selfArmies[x].property '''or''' city.selfArmies[x].property''

    The ''[x]'' will signify which army it is - starting with 0 being the first one. If you had 6 marching farm crews for example, you would reference these with ''city.selfArmies[0].property'' through ''city.selfArmies[5].property''.

    The .property at the end is how you will specify which detail you are referencing. Using the table below, you can for example get the lord name of the person that the third incoming attack wave belongs to with ''city.enemyArmies[2].king ''

    Some properties can have further details, for example resource and troop. Click the links in the table below to get the extra types of properties these can have. As an example, to see how much food your first returning npc farming crew is carrying, you could use ''city.selfArmies[0].resource.food''. Another example, using troops, let's you check how many scouts are in the second incoming reinforcement from your alliance mate by using'' city.friendlyArmies[1].troop.scouter.''

    '''Properties'''
    ||<tablewidth="796px" tableheight="123px"#cccccc>'''Property ''' ||<#cccccc>'''Type''' ||<#cccccc>'''Description ''' ||
    ||alliance ||String ||Alliance of the player who sent the army ||
    ||armyId ||int ||army ID ||
    ||[[ArmyDirection|direction]] ||int || ||
    ||hero ||String ||Hero name ||
    ||heroLevel || || ||
    ||king ||String ||Lord name of the player who sent the army ||
    ||[[MissionType|missionType]] ||int ||Type of each wave being sent from the rally point: 1 - transport, 2 - reinforce, 3 - scout, 4 - build city, 5 - attack ||
    ||reachTime || || ||
    ||[[ResourceBean|resource]] ||Object ||Object describing the army resources ||
    ||restTime || || ||
    ||startFieldId ||int ||!FieldId of the army origination point ||
    ||startPosName || || ||
    ||startTime || || ||
    ||targetFieldId ||int ||!FieldId of the army destination point ||
    ||targetPosName || || ||
    ||[[TroopStrBean|troop]] ||Object ||Object describing the army troops ||

    '''Examples'''

     . {{{
    // Example here
    ...
    ...
    }}}

    Line 3: Line 50:
    CategoryVariables ScriptObjects

    The Army objects can reference details about the armies marching to or from your cities.

    Incoming enemy armies can be referenced as:

    • m_city.cityManager.enemyArmies[x].property or city.enemyArmies[x].property

    Incoming friendly armies can be referenced as:

    • m_city.cityManager.friendlyArmies[x].property or city.friendlyArmies[x].property

    Your own armies can be referenced as:

    • m_city.cityManager.selfArmies[x].property or city.selfArmies[x].property

    The [x] will signify which army it is - starting with 0 being the first one. If you had 6 marching farm crews for example, you would reference these with city.selfArmies[0].property through city.selfArmies[5].property.

    The .property at the end is how you will specify which detail you are referencing. Using the table below, you can for example get the lord name of the person that the third incoming attack wave belongs to with city.enemyArmies[2].king

    Some properties can have further details, for example resource and troop. Click the links in the table below to get the extra types of properties these can have. As an example, to see how much food your first returning npc farming crew is carrying, you could use city.selfArmies[0].resource.food. Another example, using troops, let's you check how many scouts are in the second incoming reinforcement from your alliance mate by using city.friendlyArmies[1].troop.scouter.

    Properties

    Property

    Type

    Description

    alliance

    String

    Alliance of the player who sent the army

    armyId

    int

    army ID

    direction

    int

    hero

    String

    Hero name

    heroLevel

    king

    String

    Lord name of the player who sent the army

    missionType

    int

    Type of each wave being sent from the rally point: 1 - transport, 2 - reinforce, 3 - scout, 4 - build city, 5 - attack

    reachTime

    resource

    Object

    Object describing the army resources

    restTime

    startFieldId

    int

    FieldId of the army origination point

    startPosName

    startTime

    targetFieldId

    int

    FieldId of the army destination point

    targetPosName

    troop

    Object

    Object describing the army troops

    Examples

    • // Example here
      ...
      ...


    ScriptObjects

    Army (last edited 2014-02-10 21:14:29 by Inanna)