Table of Contents
Strategy: Upgradetroop
The UpgradeTroop strategy will upgrade the nominated troop type to the specified level at the appropriate upgrade site. The strategy will optionally check periodically if it is time to upgrade and will finish when a desired level is reached. Notes
Syntax<strategy class="UpgradeTroop" desc="DESCRIPTION" enabled="true" runWhile="RUNWHILE_UID" waitFor="WAITFOR_UID" uid="UID"> <keepResources wood="MIN_RES" clay="MIN_RES" iron="MIN_RES" crop="MIN_RES"/> <troops type="TROOPTYPE" weapon="true" maxLevel="LEVEL" minPauseMinutes="MINS" /> <troops type="TROOPTYPE" armour="true" maxLevel="LEVEL" minPauseMinutes="MINS" /> </strategy> </strategy> Attributes and parameters
ExamplesUpgrade the armour of Gaul Phalanx to level 20 <strategy desc="Upgrade" class="UpgradeTroop" enabled="true" uid="scomxV1ut"> <troops type="Phalanx" armour="true" maxLevel="20" minPauseMinutes="10" /> </strategy> Upgrade the weapons of Swordsman as well but only if have more than 1000 resources <strategy desc="Upgrade" class="UpgradeTroop" enabled="true" uid="scomxV2ut"> <keepResources wood="1000" clay="1000" iron="1000" crop="500"/> <troops type="Swordsman" weapon="true" maxLevel="10" minPauseMinutes="10" /> <troops type="Phalanx" armour="true" maxLevel="20" minPauseMinutes="10" /> </strategy> |
![]() |