Register     Password recovery
username Username:
password Password:
Treasure Isle

Script for map Treasure Isle

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

Defeat the Twin kings in the North / South. Battle for the Treasure Isle, it's worth it. Do not get your king killed
<script>
  <setup>
    <action type="copyMetaUnit" basedOn="6" id="10000" name="King in the South"/>
    <action type="customizeRuleset" elementId="10000">
      <update property="unit.clipName" value="MedievalKing"/>
      <update property="unit.health" value="20"/>
      <update property="unit.repairs" value="4"/>
      <update property="unit.primaryMovementPoints" value="4"/>
      <update property="unit.visionPoints" value="4"/>
    </action>
    <action type="customizeRuleset" elementId="0">
      <update property="building.buildsUnits" elementId="3" unitId="10000" value="0"/>
      <update property="building.buildsUnits" elementId="5" unitId="10000" value="0"/>
    </action>
    <action type="copyMetaUnit" basedOn="10000" id="10001" name="King in the North"/>
    <action type="customizeRuleset" elementId="10001">
      <update property="unit.clipName" value="MedievalEvilKing"/>
    </action>
  </setup>
  <trigger name="startGame" noOfTimesAllowedToInvoke="1">
    <condition type="startGame"/>
    <action type="setTeam" playerOrder="1" team="1"/>
    <action type="setTeam" playerOrder="2" team="2"/>
    <action type="setTeam" playerOrder="3" team="2"/>
    <action type="setTeam" playerOrder="4" team="1"/>
    <action type="setGoal" name="1_1" text="Keep your king alive" playerOrder="1" status="0" primary="1"/>
    <action type="setGoal" name="1_2" text="Kill the blue king" playerOrder="1" status="0" primary="1"/>
    <action type="setGoal" name="1_3" text="Kill the yellowking" playerOrder="1" status="0" primary="1"/>
    <action type="setGoal" name="2_1" text="Keep your king alive" playerOrder="2" status="0" primary="1"/>
    <action type="setGoal" name="2_2" text="Kill the red king" playerOrder="2" status="0" primary="1"/>
    <action type="setGoal" name="2_3" text="Kill the white king" playerOrder="2" status="0" primary="1"/>
    <action type="setGoal" name="3_1" text="Keep your king alive" playerOrder="3" status="0" primary="1"/>
    <action type="setGoal" name="3_2" text="Kill the red king" playerOrder="3" status="0" primary="1"/>
    <action type="setGoal" name="3_3" text="Kill the white king" playerOrder="3" status="0" primary="1"/>
    <action type="setGoal" name="4_1" text="Keep your king alive" playerOrder="4" status="0" primary="1"/>
    <action type="setGoal" name="4_2" text="Kill the blue king" playerOrder="4" status="0" primary="1"/>
    <action type="setGoal" name="4_3" text="Kill the yellowking" playerOrder="4" status="0" primary="1"/>
    <action type="createUnit" metaUnitId="10000" x="41" y="29" name="RedKing" heroName="The Red King" playerOrder="1" health="20" vicinity="1"/>
    <action type="createUnit" metaUnitId="10001" x="41" y="1" name="BlueKing" heroName="The Blue King" playerOrder="2" health="20" vicinity="1"/>
    <action type="createUnit" metaUnitId="10001" x="1" y="1" name="YellowKing" heroName="The Yellow King" playerOrder="3" health="20" vicinity="1"/>
    <action type="createUnit" metaUnitId="10000" x="1" y="29" name="WhiteKing" heroName="The White King" playerOrder="4" health="20" vicinity="1"/>
  </trigger>
  <trigger name="RedKingKilled" noOfTimesAllowedToInvoke="1">
    <condition type="unitKilled" unitName="RedKing"/>
    <action type="triggerLoss" playerOrder="1"/>
    <action type="setGoal" name="2_2" playerOrder="2" status="1"/>
    <action type="setGoal" name="3_2" playerOrder="3" status="0"/>
  </trigger>
  <trigger name="BlueKingKilled" noOfTimesAllowedToInvoke="1">
    <condition type="unitKilled" unitName="BlueKing"/>
    <action type="triggerLoss" playerOrder="2"/>
    <action type="setGoal" name="1_2" playerOrder="1" status="1"/>
    <action type="setGoal" name="4_2" playerOrder="4" status="0"/>
  </trigger>
  <trigger name="YellowKingKilled" noOfTimesAllowedToInvoke="1">
    <condition type="unitKilled" unitName="YellowKing"/>
    <action type="triggerLoss" playerOrder="3"/>
    <action type="setGoal" name="1_3" playerOrder="1" status="1"/>
    <action type="setGoal" name="4_3" playerOrder="4" status="0"/>
  </trigger>
  <trigger name="WhiteKingKilled" noOfTimesAllowedToInvoke="1">
    <condition type="unitKilled" unitName="WhiteKing"/>
    <action type="triggerLoss" playerOrder="4"/>
    <action type="setGoal" name="2_3" playerOrder="2" status="1"/>
    <action type="setGoal" name="3_3" playerOrder="3" status="0"/>
  </trigger>
  <trigger name="RedBegin" noOfTimesAllowedToInvoke="1">
    <condition type="isPlayerTurn" playerOrder="1"/>
    <action type="showDialogue" playerOrder="1">
      <row icon="char6" name="game Master">Defeat the Islander King and the Kings in the North.</row>
      <row icon="char6" name="Game Master">Beware, your people will not survive loosing ther king.</row>
    </action>
  </trigger>
  <trigger name="BlueBegin" noOfTimesAllowedToInvoke="1">
    <condition type="isPlayerTurn" playerOrder="2"/>
    <action type="showDialogue" playerOrder="2">
      <row icon="char6" name="Game Master">Defeat the Islander King and the Kings in the South.</row>
      <row icon="char6" name="Game Master">Beware, your people will not survive loosing ther king.</row>
    </action>
  </trigger>
  <trigger name="YellowBegin" noOfTimesAllowedToInvoke="1">
    <condition type="isPlayerTurn" playerOrder="3"/>
    <action type="showDialogue" playerOrder="3">
      <row icon="char6" name="Game Master">Defeat the Islander King and the Kings in the South.</row>
      <row icon="char6" name="Game Master">Beware, your people will not survive loosing ther king.</row>
    </action>
  </trigger>
  <trigger name="WhiteBegin" noOfTimesAllowedToInvoke="1">
    <condition type="isPlayerTurn" playerOrder="4"/>
    <action type="showDialogue" playerOrder="4">
      <row icon="char6" name="Game Master">Defeat the Islander King and the Kings in the North.</row>
      <row icon="char6" name="Game Master">Beware, your people will not survive loosing ther king.</row>
    </action>
  </trigger>
</script>