Size: 1963
Comment:
|
Size: 2163
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from Object CityResource | |
Line 11: | Line 12: |
||iron.workPeople || || ||stone.workPeople || || ||wood.workPeople || || ||maxPopulation || || ||workPeople || || ||support || || ||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 || || |
||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 45: | Line 47: |
||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 || || |
||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 59: | Line 62: |
[[Object City]] | [[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 |
|
|