Register     Password recovery
username Username:
password Password:
baueda 2.0 scripted

Script for map baueda 2.0 scripted

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

scripted to set up a fixed income of 500 gold per turn for all regardless and reduce income from buildings: all are worth half except for forts which are worth zero income. Hopefully this should reduce the impact of a player dropping out early on... comments welcome!
<script>
  <setup>
    <action type="customizeRuleset" elementId="0">
      <update property="building.resourceProduction" elementId="1" resourceId="1" value="50"/>
      <update property="building.resourceProduction" elementId="8" resourceId="1" value="25"/>
      <update property="building.resourceProduction" elementId="2" resourceId="1" value="0"/>
      <update property="building.resourceProduction" elementId="3" resourceId="1" value="75"/>
      <update property="building.resourceProduction" elementId="9" resourceId="1" value="150"/>
    </action>
  </setup>
  <trigger name="startGame" noOfTimesAllowedToInvoke="1">
    <condition type="startGame"/>
    <action type="showDialogue" playerOrder="0">
      <row icon="char4" name="map guide">Hello there, this map is scripted! The main reason for this is to reduce the impact of a player dropping out early on... If you never play this map before please click next to see exactly what the script does!</row>
      <row icon="char4" name="map guide">The map is scripted to set up a free fixed income of 500 gold per turn for each player, every turn. It also reduce income from buildings: all are worth half except for forts which are worth zero income.
Please click next to see a detailed breakdown of building revenue in this map.</row>
      <row icon="char4" name="map guide">Village generates income = 50 gold 
Harbour generates income = 25 gold 
Castle generates income = 75 gold
Mine generates income = 150 gold
Fort generates income = 0 gold
Your comments are welcome!</row>
    </action>
  </trigger>
  <trigger name="player 1 cash time" noOfTimesAllowedToInvoke="1">
    <condition type="turnStarted"/>
    <action type="addResource" playerOrder="1" metaResourceId="1" amount="500"/>
  </trigger>
  <trigger name="player 2 cash time" noOfTimesAllowedToInvoke="1">
    <condition type="turnStarted"/>
    <action type="addResource" playerOrder="2" metaResourceId="1" amount="500"/>
  </trigger>
  <trigger name="player 3 cash time" noOfTimesAllowedToInvoke="1">
    <condition type="turnStarted"/>
    <action type="addResource" playerOrder="3" metaResourceId="1" amount="500"/>
  </trigger>
  <trigger name="player 4 cash time" noOfTimesAllowedToInvoke="1">
    <condition type="turnStarted"/>
    <action type="addResource" playerOrder="4" metaResourceId="1" amount="500"/>
  </trigger>
  <trigger name="player 5 cash time" noOfTimesAllowedToInvoke="1">
    <condition type="turnStarted"/>
    <action type="addResource" playerOrder="5" metaResourceId="1" amount="500"/>
  </trigger>
  <trigger name="player 6 cash time" noOfTimesAllowedToInvoke="1">
    <condition type="turnStarted"/>
    <action type="addResource" playerOrder="6" metaResourceId="1" amount="500"/>
  </trigger>
</script>