| Purpose | To destroy a building by reducing its levels |
|---|---|
| When to use | When you need the plot for a different building |
| When to avoid | When you still need the builing! |
The DestroyBuilding strategy will remove building levels down to 0 or a specified minimum level at which point it well complete and set the finish flag.
Notes
<strategy class="DestroyBuilding" enabled="true" runWhile="RUNWHILE_UID" waitFor="WAITFOR_UID" uid="UID"> <building id="ID" name="BUILDING" minLevel="LEVEL"/> </strategy>
| DESCRIPTION | some optional description of your choice |
| WAITFOR_UID | See "Strategies" |
| RUNWHILE_UID | See "Strategies" |
| UID | Unique IDentifier. See "Strategies" |
| ID | building slot number |
| BUILDING | the name of the item you want to destroy, in the server language (optional). When specified, the strategy will destroy the building only if the current type matches the value of this attribute. Useful when you want to grow something else as the slot becomes free |
| LEVEL | the level to which you want to reduce the element - default 0 which will totally destroy it |
Destroy a cranny
<strategy class="DestroyBuilding" desc="Cranny down" enabled="true" uid="s123123"> <building id="19" name="Cranny"/> </strategy>
Reduce The Town Hall to Level 10 to extend Party Time!
<strategy class="DestroyBuilding" desc="Shorten Town Hall" enabled="true" uid="s123123"> <building id="19" name="Town Hall" minLevel="10"/> </strategy>