<?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>SetMayor</title><revhistory><revision><revnumber>12</revnumber><date>2015-09-07 22:12:23</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>11</revnumber><date>2015-09-07 22:11:23</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>10</revnumber><date>2015-04-03 05:57:32</date><authorinitials>tech</authorinitials></revision><revision><revnumber>9</revnumber><date>2015-04-03 05:56:18</date><authorinitials>tech</authorinitials></revision><revision><revnumber>8</revnumber><date>2015-04-03 05:55:36</date><authorinitials>tech</authorinitials></revision><revision><revnumber>7</revnumber><date>2015-04-03 05:54:11</date><authorinitials>tech</authorinitials></revision><revision><revnumber>6</revnumber><date>2015-04-03 05:53:48</date><authorinitials>tech</authorinitials></revision><revision><revnumber>5</revnumber><date>2015-04-03 05:49:56</date><authorinitials>tech</authorinitials></revision><revision><revnumber>4</revnumber><date>2015-04-03 05:47:58</date><authorinitials>tech</authorinitials></revision><revision><revnumber>3</revnumber><date>2012-10-24 01:39:05</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>2</revnumber><date>2012-10-21 04:57:37</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>1</revnumber><date>2012-09-21 12:56:37</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage: </para></entry><entry colsep="1" rowsep="1"><para>setmayor attribute </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>setmayor pol </para></entry></row></tbody></tgroup></informaltable><para>Valid Arguments: </para><itemizedlist><listitem override="none"><screen><![CDATA[att or atk or attack
pol or politics
int or intel or intelligence
none or remove]]></screen></listitem></itemizedlist><para>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. </para><para><emphasis role="strong">examples:</emphasis> </para><itemizedlist><listitem override="none"><screen><![CDATA[// appoints highest politic hero to mayor
setmayor pol
]]><![CDATA[
// appoints highest attack hero to mayor
setmayor att
]]><![CDATA[
// appoints highest intel hero to mayor
setmayor int
]]><![CDATA[
// demotes current mayor
setmayor remove
setmayor none]]></screen></listitem></itemizedlist><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/SetMayor/wiki/ScriptHero#">ScriptHero</ulink> </para></article>