<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>Field</title><revhistory><revision><revnumber>16</revnumber><date>2014-02-10 18:48:46</date><authorinitials>Inanna</authorinitials><revremark>Renamed from 'FieldBean'.</revremark></revision><revision><revnumber>15</revnumber><date>2014-02-10 18:40:00</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>14</revnumber><date>2013-07-31 07:31:32</date><authorinitials>tech</authorinitials></revision><revision><revnumber>13</revnumber><date>2013-07-31 07:30:57</date><authorinitials>tech</authorinitials></revision><revision><revnumber>12</revnumber><date>2013-07-31 06:37:13</date><authorinitials>tech</authorinitials></revision><revision><revnumber>11</revnumber><date>2012-11-27 15:57:18</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'Fields'.</revremark></revision><revision><revnumber>10</revnumber><date>2012-11-27 14:52:45</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>9</revnumber><date>2012-11-21 04:56:17</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>8</revnumber><date>2012-10-28 21:04:37</date><authorinitials>jay777</authorinitials></revision><revision><revnumber>7</revnumber><date>2012-10-28 20:55:25</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>6</revnumber><date>2012-10-24 20:16:24</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>5</revnumber><date>2012-10-23 20:16:28</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>4</revnumber><date>2012-10-23 20:16:18</date><authorinitials>Inanna</authorinitials><revremark>Renamed from 'FieldVars'.</revremark></revision><revision><revnumber>3</revnumber><date>2012-10-23 14:36:12</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>2</revnumber><date>2012-10-23 13:34:51</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>1</revnumber><date>2012-10-23 13:04:29</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><para>The Fields objects can reference details about valleys you own. </para><para><emphasis role="strong">Field objects can be referenced as:</emphasis> </para><itemizedlist><listitem override="none"><para><emphasis>m_city.cityManager.fields[#].property <emphasis role="strong">or</emphasis> city.fields[#].property</emphasis> </para></listitem></itemizedlist><para>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 <emphasis>city.fields[4].level</emphasis>. </para><para><emphasis role="strong">Properties</emphasis> </para><informaltable><tgroup cols="3"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para><emphasis role="strong">Property </emphasis> </para></entry><entry colsep="1" rowsep="1"><para><emphasis role="strong">Type</emphasis> </para></entry><entry colsep="1" rowsep="1"><para><emphasis role="strong">Description </emphasis> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>id </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>The fieldID of the valley </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>level </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>Level of field 1-10 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>name </para></entry><entry colsep="1" rowsep="1"><para>String </para></entry><entry colsep="1" rowsep="1"><para>Name of field (&quot;Forest&quot;,&quot;Desert&quot;,&quot;Hill&quot;,&quot;Swamp&quot;,&quot;Grassland&quot;,&quot;Lake&quot;) </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para><ulink url="http://guide.neatportal.com/wiki/Field/wiki/FieldTypes#">type</ulink> </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>Type of field in numerical format </para></entry></row></tbody></tgroup></informaltable><para>The following functions can give further information about valleys, but are used as: </para><itemizedlist><listitem override="none"><para><emphasis>m_city.cityManager.fields.method <emphasis role="strong">or</emphasis> city.fields.method</emphasis> </para></listitem></itemizedlist><para><emphasis role="strong">Methods</emphasis> </para><informaltable><tgroup cols="3"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para><emphasis role="strong">Method </emphasis> </para></entry><entry colsep="1" rowsep="1"><para><emphasis role="strong">Type</emphasis> </para></entry><entry colsep="1" rowsep="1"><para><emphasis role="strong">Description </emphasis> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>length </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>How many fields are owned by the city </para></entry></row></tbody></tgroup></informaltable><para><emphasis role="strong">Examples</emphasis> </para><itemizedlist><listitem override="none"><screen><![CDATA[echo FieldIdToCoords(city.fields[0].id)
]]><![CDATA[
outputs the coords of field[0] using the associated FieldId]]></screen></listitem></itemizedlist><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/Field/wiki/ScriptObjects#">ScriptObjects</ulink> </para></article>