The Fields objects can reference details about valleys you own.

Field objects can be referenced as:

The # will be which valley slot you are referencing, between 0-9. 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 level of the 5th valley you own with city.fields[4].level.

Properties

Property

Type

Description

id

int

The fieldID of the valley

level

int

Level of field 1-10

name

String

Name of field ("Forest","Desert","Hill","Swamp","Grassland","Lake")

type

int

Type of field in numerical format

The following functions can give further information about valleys, but are used as:

Methods

Method

Type

Description

length

int

How many fields are owned by the city

Examples


ScriptObjects

Field (last edited 2014-02-10 18:48:46 by Inanna)