<?xml version="1.0" encoding="utf-8"?>
<s1 title="SetMayor"><table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>setmayor attribute </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>setmayor pol </p>
</td></tr></table><p>Valid Arguments: </p>
<ul><li><source><![CDATA[att or atk or attack
pol or politics
int or intel or intelligence
none or remove]]></source></li>
</ul>
<p>This command will change your current mayor for one of the specified attributes or will demote the mayor completely. It automatically selects the highest level of the attribute that you specify. This is very useful when creating, upgrading and demolishing buildings via script, as you can specify the highest level politic hero you have to go into office. Capturing a npc10 and only have a level 9 Feasting hall in one city? You can remove the mayor with this command to make sure he marches with the rest of the troops. </p>
<p><strong>examples:</strong> </p>
<ul><li><source><![CDATA[// appoints highest politic hero to mayor
setmayor pol

// appoints highest attack hero to mayor
setmayor att

// appoints highest intel hero to mayor
setmayor int

// demotes current mayor
setmayor remove
setmayor none]]></source></li>
</ul>
<p></p>

<br/>------------------------------------------------------------------------------<br/>
<p> <jump href="/wiki/ScriptHero">ScriptHero</jump> </p>
</s1>