This is an old revision of the document!


Strategy: Destroybuilding

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

  • A Main Building of at least level 10 is required to destroy buildings

Syntax

<strategy class="DestroyBuilding" enabled="true" 
          runWhile="RUNWHILE_UID" waitFor="WAITFOR_UID" uid="UID">
     <building id="ID" name="BUILDING" minLevel="LEVEL"/>
</strategy>

Attributes and parameters

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
LEVEL the level to which you want to reduce the element - default 0 which will totally destroy it

Examples

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>


Personal Tools