Register     Password recovery
username Username:
password Password:
King bash

Script for map King bash

Too confusing? Check out scripting manual
Start a game on this map
View map

<script>
  <setup>
    <action type="copyMetaUnit" basedOn="6" id="10000" name="The King."/>
    <action type="customizeRuleset" elementId="10000">
      <update property="unit.clipName" value="MedievalKing"/>
      <update property="unit.price" resourceId="1" value="2000"/>
      <update property="unit.health" value="20"/>
      <update property="unit.repairs" value="3"/>
      <update property="unit.primaryMovementPoints" value="2"/>
      <update property="unit.repairsOnBuildings" buildingId="3" value="6"/>
      <update property="unit.repairsOnBuildings" buildingId="5" value="8"/>
      <update property="unit.visionPoints" value="8"/>
    </action>
    <action type="copyMetaUnit" basedOn="6" id="10001" name="Prince"/>
    <action type="customizeRuleset" elementId="10001">
      <update property="unit.clipName" value="MedievalPrince"/>
      <update property="unit.price" resourceId="1" value="2000"/>
      <update property="unit.health" value="15"/>
      <update property="unit.repairs" value="3"/>
      <update property="unit.primaryMovementPoints" value="4"/>
      <update property="unit.repairsOnBuildings" buildingId="1" value="4"/>
      <update property="unit.repairsOnBuildings" buildingId="2" value="4"/>
      <update property="unit.repairsOnBuildings" buildingId="3" value="5"/>
      <update property="unit.repairsOnBuildings" buildingId="5" value="7"/>
      <update property="unit.visionPoints" value="4"/>
    </action>
  </setup>
  <trigger name="startMessage" noOfTimesAllowedToInvoke="6">
    <condition type="turnStarted"/>
    <action type="showDialogue" playerOrder="0">
      <row icon="char7" name="Simon says:">"Beat the crap out of the five Kings to win."</row>
    </action>
  </trigger>
  <trigger name="startGame" noOfTimesAllowedToInvoke="1">
    <condition type="startGame"/>
    <action type="createUnit" metaUnitId="10001" x="56" y="36" name="" playerOrder="1" health="15" vicinity="1"/>
    <action type="createUnit" metaUnitId="10001" x="18" y="35" name="" playerOrder="2" health="15" vicinity="1"/>
    <action type="createUnit" metaUnitId="10001" x="46" y="54" name="" playerOrder="3" health="15" vicinity="1"/>
    <action type="createUnit" metaUnitId="10001" x="27" y="17" name="" playerOrder="4" health="15" vicinity="1"/>
    <action type="createUnit" metaUnitId="10001" x="27" y="54" name="" playerOrder="5" health="15" vicinity="1"/>
    <action type="createUnit" metaUnitId="10001" x="46" y="16" name="" playerOrder="6" health="15" vicinity="1"/>
    <action type="createUnit" metaUnitId="10000" x="39" y="35" name="The Red King" playerOrder="1" health="20" vicinity="1"/>
    <action type="nameUnit" name="The Red King" heroName="The Red King" x="39" y="35"/>
    <action type="createUnit" metaUnitId="10000" x="33" y="35" name="The Blue King" playerOrder="2" health="20" vicinity="1"/>
    <action type="nameUnit" name="The Blue King" heroName="The Blue King" x="33" y="35"/>
    <action type="createUnit" metaUnitId="10000" x="38" y="38" name="The Yellow King" playerOrder="3" health="20" vicinity="1"/>
    <action type="nameUnit" name="The Yellow King" heroName="The Yellow King" x="38" y="38"/>
    <action type="createUnit" metaUnitId="10000" x="35" y="32" name="The White King" playerOrder="4" health="20" vicinity="1"/>
    <action type="nameUnit" name="The White King" heroName="The White King" x="35" y="32"/>
    <action type="createUnit" metaUnitId="10000" x="35" y="38" name="The Green King" playerOrder="5" health="20" vicinity="1"/>
    <action type="nameUnit" name="The Green King" heroName="The Green King" x="35" y="38"/>
    <action type="createUnit" metaUnitId="10000" x="38" y="32" name="The Purple King" playerOrder="6" health="20" vicinity="1"/>
    <action type="nameUnit" name="The Purple King" heroName="The Purple King" x="38" y="32"/>
  </trigger>
</script>