1268
Comment:
|
1277
|
Deletions are marked like this. | Additions are marked like this. |
Line 22: | Line 22: |
||ResourceBean|resource]] ||object || || | ||[[ResourceBean|resource]] ||object || || |
Line 24: | Line 24: |
||usePACIFY_SUCCOUR_OR_PACIFY_PRAY:int; | ||usePACIFY_SUCCOUR_OR_PACIFY_PRAY ||int || || |
The Castle objects can reference details about the city the script is run in.
Castle objects can be referenced as:
m_city.cityManager.castle.property or city.castle.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 name of the city with city.castle.name. Some castle properties are aliased via the city object as well, for example city.castle.name and city.name are the same thing.
Properties
Property |
Type |
Description |
herosArray |
array |
|
tradesArray |
array |
|
id |
int |
|
buffsArray |
array |
|
object |
|
|
logUrl |
string |
|
goOutForBattle |
boolean |
|
object |
|
|
status |
int |
|
name |
string |
|
buildingQueuesArray |
array |
|
object |
|
|
allowAlliance |
boolean |
|
usePACIFY_SUCCOUR_OR_PACIFY_PRAY |
int |
|
fieldId |
int |
|
buildingsArray |
array |
|
fieldsArray |
array |
|
hasEnemy |
boolean |
|
transingTradesArray |
array |
|