<?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>Army</title><revhistory><revision><revnumber>78</revnumber><date>2014-02-10 21:14:29</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>77</revnumber><date>2014-02-10 19:15:57</date><authorinitials>Inanna</authorinitials><revremark>Renamed from 'ObjectArmy'.</revremark></revision><revision><revnumber>76</revnumber><date>2014-02-10 19:13:47</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>75</revnumber><date>2014-02-10 18:58:05</date><authorinitials>Inanna</authorinitials><revremark>Renamed from 'Army'.</revremark></revision><revision><revnumber>74</revnumber><date>2014-02-10 18:53:24</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>73</revnumber><date>2014-02-10 18:52:03</date><authorinitials>Inanna</authorinitials><revremark>Renamed from 'ArmyBean'.</revremark></revision><revision><revnumber>72</revnumber><date>2014-02-10 18:39:32</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>71</revnumber><date>2013-04-27 21:04:14</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>70</revnumber><date>2013-04-27 21:03:44</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>69</revnumber><date>2012-11-29 17:14:28</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>68</revnumber><date>2012-11-27 16:49:14</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>67</revnumber><date>2012-11-27 16:41:00</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>66</revnumber><date>2012-11-27 16:39:19</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>65</revnumber><date>2012-11-27 16:37:21</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>64</revnumber><date>2012-11-27 16:34:49</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>63</revnumber><date>2012-11-27 15:56:56</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'ObjectArmyBean'.</revremark></revision><revision><revnumber>62</revnumber><date>2012-11-27 15:31:45</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'ArmyBean'.</revremark></revision><revision><revnumber>61</revnumber><date>2012-11-27 15:28:18</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'TestArmyBean'.</revremark></revision><revision><revnumber>60</revnumber><date>2012-11-27 15:28:10</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'ArmyBean'.</revremark></revision><revision><revnumber>59</revnumber><date>2012-11-27 15:21:03</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'ObjectArmyBean'.</revremark></revision><revision><revnumber>58</revnumber><date>2012-11-27 15:14:34</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'ArmyBean'.</revremark></revision><revision><revnumber>57</revnumber><date>2012-11-27 15:14:25</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'ObjectArmyBean'.</revremark></revision><revision><revnumber>56</revnumber><date>2012-11-27 15:05:35</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>55</revnumber><date>2012-11-27 15:05:23</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>54</revnumber><date>2012-11-27 14:51:08</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>53</revnumber><date>2012-11-27 14:50:51</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>52</revnumber><date>2012-11-27 14:48:58</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'Object ArmyBean'.</revremark></revision><revision><revnumber>51</revnumber><date>2012-11-27 14:47:40</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>50</revnumber><date>2012-11-27 14:43:35</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>49</revnumber><date>2012-11-27 14:43:24</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>48</revnumber><date>2012-11-27 14:42:49</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>47</revnumber><date>2012-11-27 14:39:20</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>46</revnumber><date>2012-11-27 14:38:07</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>45</revnumber><date>2012-11-27 14:37:39</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>44</revnumber><date>2012-11-27 14:37:24</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'ArmyBean'.</revremark></revision><revision><revnumber>43</revnumber><date>2012-11-27 14:36:28</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'Object ArmyBean'.</revremark></revision><revision><revnumber>42</revnumber><date>2012-11-21 19:56:58</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>41</revnumber><date>2012-11-21 19:56:49</date><authorinitials>Inanna</authorinitials><revremark>Renamed from 'Object Army'.</revremark></revision><revision><revnumber>40</revnumber><date>2012-11-21 04:57:59</date><authorinitials>Inanna</authorinitials><revremark>Renamed from 'Object ArmyBean'.</revremark></revision><revision><revnumber>39</revnumber><date>2012-10-26 02:23:48</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>38</revnumber><date>2012-10-26 02:23:35</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>37</revnumber><date>2012-10-26 02:23:17</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>36</revnumber><date>2012-10-26 02:21:59</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>35</revnumber><date>2012-10-26 02:21:16</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>34</revnumber><date>2012-10-26 00:57:03</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>33</revnumber><date>2012-10-25 22:58:07</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>32</revnumber><date>2012-10-25 22:57:07</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>31</revnumber><date>2012-10-25 22:53:04</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>30</revnumber><date>2012-10-25 22:44:09</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>29</revnumber><date>2012-10-25 22:43:23</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>28</revnumber><date>2012-10-25 22:41:36</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>27</revnumber><date>2012-10-25 22:40:44</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>26</revnumber><date>2012-10-25 22:39:28</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>25</revnumber><date>2012-10-25 22:39:17</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>24</revnumber><date>2012-10-25 22:38:00</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>23</revnumber><date>2012-10-25 22:37:40</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>22</revnumber><date>2012-10-24 01:16:54</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>21</revnumber><date>2012-10-24 00:44:34</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'Object Army'.</revremark></revision><revision><revnumber>20</revnumber><date>2012-10-24 00:39:41</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>19</revnumber><date>2012-10-24 00:34:58</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>18</revnumber><date>2012-10-24 00:32:37</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>17</revnumber><date>2012-10-24 00:31:03</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>16</revnumber><date>2012-10-24 00:21:48</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>15</revnumber><date>2012-10-23 21:35:05</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>14</revnumber><date>2012-10-23 21:18:22</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'Object Army1'.</revremark></revision><revision><revnumber>13</revnumber><date>2012-10-23 21:18:06</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'Object Army'.</revremark></revision><revision><revnumber>12</revnumber><date>2012-10-23 21:04:52</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'Category Army1'.</revremark></revision><revision><revnumber>11</revnumber><date>2012-10-23 21:02:23</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'Category Army'.</revremark></revision><revision><revnumber>10</revnumber><date>2012-10-23 20:59:50</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'CategoryArmy'.</revremark></revision><revision><revnumber>9</revnumber><date>2012-10-23 20:48:06</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'Army'.</revremark></revision><revision><revnumber>8</revnumber><date>2012-10-23 20:11:45</date><authorinitials>Inanna</authorinitials><revremark>Renamed from 'ArmyVars'.</revremark></revision><revision><revnumber>7</revnumber><date>2012-10-23 20:10:08</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>6</revnumber><date>2012-10-23 17:27:22</date><authorinitials>jay777</authorinitials></revision><revision><revnumber>5</revnumber><date>2012-10-23 17:17:22</date><authorinitials>jay777</authorinitials></revision><revision><revnumber>4</revnumber><date>2012-10-23 17:10:55</date><authorinitials>jay777</authorinitials></revision><revision><revnumber>3</revnumber><date>2012-10-23 14:32:25</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>2</revnumber><date>2012-10-23 13:41:46</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>1</revnumber><date>2012-10-23 13:06:30</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><para>The Army objects can reference details about the armies marching to or from your cities. </para><para><emphasis role="strong">Incoming enemy armies can be referenced as: </emphasis> </para><itemizedlist><listitem override="none"><para><emphasis>m_city.cityManager.enemyArmies[x].property <emphasis role="strong">or</emphasis> city.enemyArmies[x].property</emphasis> </para></listitem></itemizedlist><para><emphasis role="strong">Incoming friendly armies can be referenced as: </emphasis> </para><itemizedlist><listitem override="none"><para><emphasis>m_city.cityManager.friendlyArmies[x].property <emphasis role="strong">or</emphasis> city.friendlyArmies[x].property</emphasis> </para></listitem></itemizedlist><para><emphasis role="strong">Your own armies can be referenced as: </emphasis> </para><itemizedlist><listitem override="none"><para><emphasis>m_city.cityManager.selfArmies[x].property <emphasis role="strong">or</emphasis> city.selfArmies[x].property</emphasis> </para></listitem></itemizedlist><para>The <emphasis>[x]</emphasis> will signify which army it is - starting with 0 being the first one. If you had 6 marching farm crews for example, you would reference these with <emphasis>city.selfArmies[0].property</emphasis> through <emphasis>city.selfArmies[5].property</emphasis>. </para><para>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 lord name of the person that the third incoming attack wave belongs to with <emphasis>city.enemyArmies[2].king </emphasis> </para><para>Some properties can have further details, for example resource and troop. Look below the table to get the extra types of properties these can have. As an example, to see how much food your first returning npc farming crew is carrying, you could use <emphasis>city.selfArmies[0].resource.food</emphasis>. Another example, using troops, lets you check how many scouts are in the second incoming reinforcement from your alliance mate by using<emphasis> city.friendlyArmies[1].troop.scouter.</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>alliance </para></entry><entry colsep="1" rowsep="1"><para>String </para></entry><entry colsep="1" rowsep="1"><para>Alliance of the player who sent the army </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>armyId </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>army ID </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>direction </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>The direction the army is travelling, 1 = marching, 2 = returning </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>hero </para></entry><entry colsep="1" rowsep="1"><para>String </para></entry><entry colsep="1" rowsep="1"><para>The name of the hero sent with the wave </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>heroLevel </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>The level of the hero sent with the wave </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>king </para></entry><entry colsep="1" rowsep="1"><para>String </para></entry><entry colsep="1" rowsep="1"><para>Lord name of the player who sent the army </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>missionType </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>Type of each wave being sent from the rally point: 1 - transport, 2 - reinforce, 3 - scout, 4 - build city, 5 - attack </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>reachTime </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>The time the wave will arrive, given in <ulink url="http://guide.neatportal.com/wiki/Army/wiki/UnixTime#">UnixTime</ulink> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>resource </para></entry><entry colsep="1" rowsep="1"><para>Object </para></entry><entry colsep="1" rowsep="1"><para>Object describing the army resources. See below. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>restTime </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>startCoords </para></entry><entry colsep="1" rowsep="1"><para>String </para></entry><entry colsep="1" rowsep="1"><para>Coordinates of the city that sent the army </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>startFieldId </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>FieldId of the army origination point </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>startPosName </para></entry><entry colsep="1" rowsep="1"><para>String </para></entry><entry colsep="1" rowsep="1"><para>Name of the city that sent the army </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>startTime </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>The time the wave was launched, given in <ulink url="http://guide.neatportal.com/wiki/Army/wiki/UnixTime#">UnixTime</ulink> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>targetCoords </para></entry><entry colsep="1" rowsep="1"><para>String </para></entry><entry colsep="1" rowsep="1"><para>Coordinates of the destination for the army </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>targetFieldId </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>FieldId of the army destination point </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>targetPosName </para></entry><entry colsep="1" rowsep="1"><para>String </para></entry><entry colsep="1" rowsep="1"><para>Name of the destination for the army </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>troop </para></entry><entry colsep="1" rowsep="1"><para>Object </para></entry><entry colsep="1" rowsep="1"><para>Object describing the army troops. See below. </para></entry></row></tbody></tgroup></informaltable><para> Some Army Objects serve as functions to reference details. As above, these objects should be used with <emphasis>m_city.cityManager.function</emphasis> or <emphasis>city.function</emphasis>. For example, <emphasis>city.hasEnemyArmies</emphasis>. </para><para> <emphasis role="strong">Functions</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">Function </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>xxxxArmies.length </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>Gives the number of total waves. Used with enemyArmies, selfArmies, or friendlyArmies in place of the xxxx </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>hasEnemyArmiesWithin(x) </para></entry><entry colsep="1" rowsep="1"><para>Boolean </para></entry><entry colsep="1" rowsep="1"><para>Returns true if there are enemy armies incoming within x seconds. Optionally use hasEnemyArmiesWithin(x, true) to return true if there are enemy armies incoming within x seconds, or if the beacon is too low to see the time. Returns false if not </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>hasEnemyArmies </para></entry><entry colsep="1" rowsep="1"><para>Boolean </para></entry><entry colsep="1" rowsep="1"><para>Returns true if you have incoming enemy armies, false if not </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>NumberOfRealAttacks </para></entry><entry colsep="1" rowsep="1"><para>int </para></entry><entry colsep="1" rowsep="1"><para>The total number of non-junk attacks incoming at your city </para></entry></row></tbody></tgroup></informaltable><para><emphasis role="strong">Examples</emphasis> </para><itemizedlist><listitem override="none"><screen><![CDATA[// List the origin and target of the 1st marching wave of your troops
origin = city.selfArmies[0].startPosName
target = city.selfArmies[0].targetPosName
echo "My first wave in the rally at city " + origin + " has " + target + " as it's target."
]]><![CDATA[
Result:
18:55:26 My first wave in the rally at city Shanra has Barbarian's city as it's target.
18:55:27 Script stopped]]></screen></listitem></itemizedlist><para><emphasis role="strong">Army Resources</emphasis> </para><para> The resources carried by an army can be accessed through the army resource bean.  </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>food </para></entry><entry colsep="1" rowsep="1"><para>Number </para></entry><entry colsep="1" rowsep="1"><para>Food amount </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>wood </para></entry><entry colsep="1" rowsep="1"><para>Number </para></entry><entry colsep="1" rowsep="1"><para>Wood amount </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>stone </para></entry><entry colsep="1" rowsep="1"><para>Number </para></entry><entry colsep="1" rowsep="1"><para>Stone amount </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>iron </para></entry><entry colsep="1" rowsep="1"><para>Number </para></entry><entry colsep="1" rowsep="1"><para>Iron amount </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>gold </para></entry><entry colsep="1" rowsep="1"><para>Number </para></entry><entry colsep="1" rowsep="1"><para>Gold amount </para></entry></row></tbody></tgroup></informaltable><para><emphasis role="strong">Example</emphasis> </para><itemizedlist><listitem override="none"><screen><![CDATA[// This sample script outputs the amount of food carried by the first army in the Armies window
res = city.selfArmies[0].resource
echo "Food amount is " + res.food]]></screen></listitem></itemizedlist><para><emphasis role="strong">Army troops</emphasis> </para><para> The individual troop types in an army can be accessed as well. The format for using this would be m_city.cityManager.xxxArmies[x].troop.type or city.xxxArmies[x].troop.type. For example, <emphasis>city.selfArmies[1].troop.scouter</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>ballista </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>batteringRam </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>carriage </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>catapult </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>heavyCavalry </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>lightCavalry </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>militia </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>peasants </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>pikemen </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>scouter </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>swordsmen </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>archer </para></entry><entry colsep="1" rowsep="1"/><entry colsep="1" rowsep="1"/></row></tbody></tgroup></informaltable><itemizedlist><listitem override="none"><screen><![CDATA[// This sample script outputs the amount of ballista incoming in the first enemy army wave in the Armies window
echo "Ballista amount is " + city.enemyArmies[0].troop.ballista]]></screen></listitem></itemizedlist><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/Army/wiki/ScriptObjects#">ScriptObjects</ulink> </para></article>