• 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 "CityResource"
    Differences between revisions 2 and 15 (spanning 13 versions)
    Revision 2 as of 2012-10-23 13:33:05
    Size: 2131
    Editor: Inanna
    Comment:
    Revision 15 as of 2013-04-27 20:19:07
    Size: 2163
    Editor: Inanna
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 1: Line 1:
     ## page was renamed from Object CityResource
    The City Resource objects can reference details about the various resources of city the script is run in.
    Line 3: Line 4:
    m_city.cityManager.resource.iron.workPeople '''City resource objects can be referenced as:'''
    Line 5: Line 6:
    m_city.cityManager.resource.stone.workPeople  . ''m_city.cityManager.resource.property '''or''' city.resource.property''
    Line 7: Line 8:
    m_city.cityManager.resource.wood.workPeople 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 loyalty of the city with ''city.resource.support''.
    Line 9: Line 10:
    m_city.cityManager.resource.maxPopulation '''Properties'''
    ||<tablewidth="796px" tableheight="123px"#cccccc>'''Property ''' ||<#cccccc>'''Type''' ||<#cccccc>'''Description ''' ||
    ||iron.workPeople || || ||
    ||stone.workPeople || || ||
    ||wood.workPeople || || ||
    ||maxPopulation || || ||
    ||workPeople || || ||
    ||support || || ||
    ||complaint || || ||
    ||food || || ||
    ||food.amount || || ||
    ||food.increaseRate || || ||
    ||food.max || || ||
    ||food.storeRercent || || ||
    ||troopCostFood || || ||
    ||gold || || ||
    ||taxIncome || || ||
    ||iron || || ||
    ||iron.amount || || ||
    ||iron.increaseRate || || ||
    ||iron.max || || ||
    ||iron.storeRercent || || ||
    ||stone || || ||
    ||stone.amount || || ||
    ||stone.increaseRate || || ||
    ||stone.max || || ||
    ||stone.storeRercent || || ||
    ||wood || || ||
    ||wood.amount || || ||
    ||wood.increaseRate || || ||
    ||wood.max || || ||
    ||wood.storeRercent || || ||
    Line 11: Line 43:
    m_city.cityManager.resource.workPeople Some City resource objects to not follow the above format of city.resource.property. You can reference the following with m_city.cityManager.property or city.property. For example, city.reservedResource.food.
    Line 13: Line 45:
    m_city.cityManager.resource.support

    m_city.cityManager.resource.food

    m_city.cityManager.resource.food.amount

    m_city.cityManager.resource.food.increaseRate

    m_city.cityManager.resource.food.max

    m_city.cityManager.resource.food.storeRercent

    m_city.cityManager.resource.troopCostFood

    m_city.cityManager.resource.gold

    m_city.cityManager.resource.taxIncome

    m_city.cityManager.resource.iron

    m_city.cityManager.resource.iron.amount

    m_city.cityManager.resource.iron.increaseRate

    m_city.cityManager.resource.iron.max

    m_city.cityManager.resource.iron.storeRercent

    m_city.cityManager.resource.stone

    m_city.cityManager.resource.stone.amount

    m_city.cityManager.resource.stone.increaseRate

    m_city.cityManager.resource.stone.max

    m_city.cityManager.resource.stone.storeRercent

    m_city.cityManager.resource.wood

    m_city.cityManager.resource.wood.amount

    m_city.cityManager.resource.wood.increaseRate

    m_city.cityManager.resource.wood.max

    m_city.cityManager.resource.wood.storeRercent

    m_city.cityManager.castle.resource.support

    m_city.cityManager.castle.resource.troopCostFood

    m_city.cityManager.castle.resource.workPeople

    m_city.cityManager.castle.resource.herosSalary

    m_city.cityManager.castle.resource.maxPopulation

    m_city.cityManager.castle.resource.populationDirection

    m_city.cityManager.castle.resource.gold

    m_city.cityManager.castle.resource.curPopulation

    m_city.cityManager.castle.resource.complaint

    m_city.cityManager.castle.resource.taxIncome

    m_city.cityManager.estResource.gold

    m_city.cityManager.estResource.food

    m_city.cityManager.estResource.wood

    m_city.cityManager.estResource.stone

    m_city.cityManager.estResource.iron

    m_city.cityManager.!ResourceProduction.food

    m_city.cityManager.!ResourceProduction.wood

    m_city.cityManager.!ResourceProduction.stone
    '''Properties'''
    ||<tablewidth="796px" tableheight="123px"#cccccc>'''Property ''' ||<#cccccc>'''Type''' ||<#cccccc>'''Description ''' ||
    ||estResource.gold || || ||
    ||estResource.food || || ||
    ||estResource.wood || || ||
    ||estResource.stone || || ||
    ||estResource.iron || || ||
    ||!ResourceProduction.food || || ||
    ||!ResourceProduction.wood || || ||
    ||!ResourceProduction.stone || || ||
    ||!ResourceProduction.iron || || ||
    ||reservedResource.food || || ||
    ||reservedResource.gold || || ||
    ||reservedResource.iron || || ||
    ||reservedResource.stone || || ||
    Line 98: Line 62:
    CategoryVariables [[ObjectCity|City]]

    The City Resource objects can reference details about the various resources of city the script is run in.

    City resource objects can be referenced as:

    • m_city.cityManager.resource.property or city.resource.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 loyalty of the city with city.resource.support.

    Properties

    Property

    Type

    Description

    iron.workPeople

    stone.workPeople

    wood.workPeople

    maxPopulation

    workPeople

    support

    complaint

    food

    food.amount

    food.increaseRate

    food.max

    food.storeRercent

    troopCostFood

    gold

    taxIncome

    iron

    iron.amount

    iron.increaseRate

    iron.max

    iron.storeRercent

    stone

    stone.amount

    stone.increaseRate

    stone.max

    stone.storeRercent

    wood

    wood.amount

    wood.increaseRate

    wood.max

    wood.storeRercent

    Some City resource objects to not follow the above format of city.resource.property. You can reference the following with m_city.cityManager.property or city.property. For example, city.reservedResource.food.

    Properties

    Property

    Type

    Description

    estResource.gold

    estResource.food

    estResource.wood

    estResource.stone

    estResource.iron

    ResourceProduction.food

    ResourceProduction.wood

    ResourceProduction.stone

    ResourceProduction.iron

    reservedResource.food

    reservedResource.gold

    reservedResource.iron

    reservedResource.stone


    City

    CityResource (last edited 2014-03-07 17:24:21 by tech)