<?xml version="1.0" encoding="utf-8"?>
<s1 title="callScript"><p></p>
<s2 id="callScript()" title="callScript()">
<p><em>This function allows you to send a line of script to another city. </em> </p>
<p></p>
<s4 id="Usage:" title="Usage:">
<p></p>
<source><![CDATA[Dummy = cities[x].cityManager.script.callScript("")]]></source><p></p>
</s4>
<s4 id="Example:" title="Example:">
<p></p>
<source><![CDATA[x = 0
Dummy = cities[x].cityManager.script.callScript("echo 'bob'")]]></source><p>In this example, the first city (time-stamp of 0) will run the script &quot;Echo &apos;bob&apos;&quot;. If this is run in city that has the same timestamp it will not work. </p>
<p></p>
</s4>
<s4 id="Script inputs:" title="Script inputs:">
<p>Scripts can be input into callScript() like so: </p>
<p></p>
<source><![CDATA[ callScript("renamecity bob")]]></source><p>You can also add more lines to the script using: <strong>\n</strong> </p>
<p></p>
<source><![CDATA[callScript("levy 1 \n echo city.resource.support")]]></source><p></p>

<br/>------------------------------------------------------------------------------<br/>
<p> <jump href="/wiki/CategoryFunctions">CategoryFunctions</jump> <jump href="/wiki/CategoryFunctions">CategoryFunctions</jump> </p>
</s4></s3></s2></s1>