<?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>callScript</title><revhistory><revision><revnumber>1</revnumber><date>2014-07-28 20:27:24</date><authorinitials>LKD70</authorinitials></revision></revhistory></articleinfo><section><title>callScript()</title><para><emphasis>This function allows you to send a line of script to another city. </emphasis> </para><section><title>Usage:</title><screen><![CDATA[Dummy = cities[x].cityManager.script.callScript("")]]></screen></section><section><title>Example:</title><screen><![CDATA[x = 0
Dummy = cities[x].cityManager.script.callScript("echo 'bob'")]]></screen><para>In this example, the first city (time-stamp of 0) will run the script &quot;Echo 'bob'&quot;. If this is run in city that has the same timestamp it will not work. </para></section><section><title>Script inputs:</title><para>Scripts can be input into callScript() like so: </para><screen><![CDATA[ callScript("renamecity bob")]]></screen><para>You can also add more lines to the script using: <emphasis role="strong">
</emphasis> </para><screen><![CDATA[callScript("levy 1 \n echo city.resource.support")]]></screen><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/callScript/wiki/CategoryFunctions#">CategoryFunctions</ulink> <ulink url="http://guide.neatportal.com/wiki/callScript/wiki/CategoryFunctions#">CategoryFunctions</ulink> </para></section></section></article>