<?xml version="1.0"?>

<script name="CANCEL_JOB">
	<!-- Show Job trebuie inainte de Restore pentru ca schimba niste date din active -->
	<ACTIVE_SHOW_JOB small-icon-frame="-1" big-icon-frame="-1" />
	<ACTIVE_STOP_SOUND />
	<ACTIVE_RESTORE_STATUS />
	<ACTIVE_RELEASE_HUMANS_NOWAIT />
</script>

<script name="REPAIR_BUILDING">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_CALL_WORKERS constant-name="JOB_REPAIR_BUILDING" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="55" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_SOUND sound-id="HOUSE_BUILD" />
	<ACTIVE_START_JOB anim-name="JOB_REPAIR_BUILDING" small-icon-frame="19" big-icon-frame="55" duration-constant="repair-time" job-description="JOB_REPAIR" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_BROKEN_FLAG flag="0" />
	<PLAY_SOUND ID="BUILD_FINISHED" />
	<ACTIVE_STOP_SOUND />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_DWELLING1">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="DWELLING" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="1" />
	<ACTIVE_CALL_WORKERS constant-name="DWELLING" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="0" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="2" />
	<ACTIVE_START_BUILD target-anim="DWELLING" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="DWELLING" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="UPGRADETO_DWELLING2">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="DWELLING_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="DWELLING_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="0" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="DWELLING_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="DWELLING_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="BUILD_HOUSE1">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="HOUSE" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="HOUSE" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="1" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="HOUSE" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="HOUSE" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="UPGRADE_HOUSE2">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="HOUSE_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="HOUSE_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="1" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="HOUSE_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="HOUSE_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="BUILD_VILLA1">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="VILLA" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="VILLA" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="2" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="VILLA" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="VILLA" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="UPGRADE_VILLA2">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="VILLA_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="VILLA_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="2" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="VILLA_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="VILLA_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<!-- UPGRADE SCRIPTS -->
<script name="UPGRADE_WINDMILL">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="WINDMILL_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="WINDMILL_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="7" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="WINDMILL_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="WINDMILL_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="UPGRADE_WHEAT_FARM">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="WHEAT_FARM_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="WHEAT_FARM_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="3" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="WHEAT_FARM_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="WHEAT_FARM_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="UPGRADE_BERRY_FARM">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="BERRY_FARM_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="BERRY_FARM_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="5" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="BERRY_FARM_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="BERRY_FARM_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="UPGRADE_SHEEP_KEEP">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="SHEEP_KEEP_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="SHEEP_KEEP_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="4"  job-description="JOB_WAITING_WORKERS"/>
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="SHEEP_KEEP_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="SHEEP_KEEP_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="UPGRADE_DOLLS_FACTORY">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="DOLLS_FACTORY_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="DOLLS_FACTORY_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="11" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="DOLLS_FACTORY_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="DOLLS_FACTORY_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="UPGRADE_BERRY_CRUSHER">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="BERRY_CRUSHER_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="BERRY_CRUSHER_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="9" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="BERRY_CRUSHER_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="BERRY_CRUSHER_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="UPGRADE_YOGURT_FACTORY">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="YOGURT_FACTORY_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="YOGURT_FACTORY_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="12" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="YOGURT_FACTORY_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="YOGURT_FACTORY_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="UPGRADE_ICECREAM_FACTORY">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="ICECREAM_FACTORY_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="ICECREAM_FACTORY_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="13" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="ICECREAM_FACTORY_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="ICECREAM_FACTORY_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="UPGRADE_CATTLE_FARM">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="CATTLE_FARM_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="CATTLE_FARM_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="6" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="CATTLE_FARM_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="CATTLE_FARM_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="UPGRADE_LOOM">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="LOOM_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="LOOM_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="8" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="LOOM_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="LOOM_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="UPGRADE_CHEESE_FACTORY">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="CHEESE_FACTORY_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="CHEESE_FACTORY_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="10" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="CHEESE_FACTORY_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="CHEESE_FACTORY_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="UPGRADE_HATS_FACTORY">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="HATS_FACTORY_UPG" />
	<ACTIVE_CALL_WORKERS constant-name="HATS_FACTORY_UPG" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="14" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="HATS_FACTORY_UPG" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="HATS_FACTORY_UPG" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_INC_LEVEL_STAT stat-name="STATS_UPGRADES" />
</script>

<script name="COLLECT_FOOD">
	<ACTIVE_CALL_WORKERS />
	<ACTIVE_SHOW_JOB small-icon-frame="20" job-description="JOB_WAITING_TAXERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_GATHER" />
	<ACTIVE_START_JOB small-icon-frame="20" duration-constant="collect-time" job-description="JOB_COLLECTING_GOODS" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_COLLECT_GOODS job-description="JOB_COLLECTING_GOODS" />		
	<ACTIVE_INCREASE_ANIMATION />	
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="COLLECT_WOOD">
	<ACTIVE_CALL_WORKERS />
	<ACTIVE_SHOW_JOB small-icon-frame="17" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_CHOP" job-description="JOB_COLLECTING_GOODS" />
	<ACTIVE_START_JOB small-icon-frame="17" duration-constant="collect-time" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_COLLECT_GOODS job-description="JOB_COLLECTING_GOODS" />
	<ACTIVE_INCREASE_ANIMATION />	
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_FIRE">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="FIRE_ON" />
	<ACTIVE_CALL_WORKERS constant-name="FIRE_ON" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="17" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="FIRE_OFF" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="FIRE_ON" />
	<ACTIVE_PLAY_ANIMATION />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_FIRE_TOWER">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="FIRE_TOWER" />
	<ACTIVE_CALL_WORKERS constant-name="FIRE_TOWER" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="18" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="FIRE_TOWER" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="FIRE_TOWER" />
	<ACTIVE_PLAY_ANIMATION />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_DRAGON_TOWER">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="DRAGON_TOWER" />
	<ACTIVE_CALL_WORKERS constant-name="DRAGON_TOWER" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="56" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_BUILD target-anim="DRAGON_TOWER" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="DRAGON_TOWER" />
	<ACTIVE_PLAY_ANIMATION />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>


<script name="FIRE_START">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_CALL_WORKERS />
	<ACTIVE_SHOW_JOB small-icon-frame="17" big-icon-frame="18" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_CHOP" />
	<ACTIVE_START_JOB small-icon-frame="17" big-icon-frame="0" duration-constant="cost-time" job-description="STARTING_FIRE" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="FIRE_ON" />
	<ACTIVE_PLAY_ANIMATION />
	<ACTIVE_RELEASE_HUMANS_NOWAIT />
</script>

<script name="COLLECT_STONEGOLD">
	<ACTIVE_CALL_WORKERS />
	<ACTIVE_SHOW_JOB small-icon-frame="23" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_PICKAXE" />
	<ACTIVE_START_JOB small-icon-frame="23" duration-constant="collect-time" job-description="JOB_COLLECTING_GOODS" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_COLLECT_GOODS />		
	<ACTIVE_INCREASE_ANIMATION />	
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>


<!-- vinde bunurile din piatza --->
<script name="SELL_MARKET_GOODS">
	<ACTIVE_SUBTRACT_MARKET_GOODS />
	<ACTIVE_SHOW_JOB small-icon-frame="3" big-icon-frame="45" job-description="JOB_WAITING_WORKERS" />
	<ACTIVE_CALL_HUMAN sex="0" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="TALK" visible="1" />
	<ACTIVE_START_JOB small-icon-frame="3" big-icon-frame="45" duration-constant="collect-time" job-description="JOB_SELLING_GOODS" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_COLLECT_MARKET_MONEY />	
	<ACTIVE_SET_ANIMATION anim-name="MARKET_CLOSED" anim-frame="0" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
 </script>

<!-- face collect la resurse si playaza animatia in timp ce face asta --->
<script name="COLLECT_INCOME_BLD_ANIM">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_INCOME_COST />
	<ACTIVE_SHOW_JOB small-icon-frame="INCOME" big-icon-frame="INCOME" job-description="JOB_WAITING_TAXERS" />
	<ACTIVE_CALL_HUMAN sex="1" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="IDLE" visible="0" />
	<ACTIVE_PLAY_ANIMATION />
	<ACTIVE_START_JOB small-icon-frame="INCOME" big-icon-frame="INCOME" duration-constant="collect-time" job-description="JOB_COLLECTING_GOODS" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_STOP_ANIMATION />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_COLLECT_GOODS />	
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<!-- face collect la resurse dar lasa animatia neatinsa --->
<script name="COLLECT_INCOME_BLD">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_INCOME_COST />
	<ACTIVE_SHOW_JOB small-icon-frame="INCOME" big-icon-frame="INCOME" job-description="JOB_WAITING_TAXERS" />
	<ACTIVE_CALL_HUMAN sex="1" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="IDLE" visible="0" />
	<ACTIVE_START_JOB small-icon-frame="INCOME" big-icon-frame="INCOME" duration-constant="collect-time" job-description="JOB_COLLECTING_GOODS" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_COLLECT_GOODS />	
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="COLLECT_INCOME_NOHUMAN">
	<ACTIVE_SHOW_JOB small-icon-frame="21" big-icon-frame="11" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="IDLE" visible="0" />
	<ACTIVE_START_JOB small-icon-frame="21" big-icon-frame="11" duration-constant="collect-time" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_COLLECT_GOODS />	
	<ACTIVE_RELEASE_HUMANS_NOWAIT />
</script>

<script name="DEMOLISH">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_CALL_WORKERS constant-name="DEMOLISH" />
	<ACTIVE_SHOW_JOB small-icon-frame="22" big-icon-frame="26" job-description="JOB_DEMOLISH" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_DEMOLISH anim-name="DEMOLISH" time-constant="cost-time" />
	<WAIT_LOCAL_VAR demolish-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="0" />
	<ACTIVE_SET_BROKEN_FLAG flag="0" />
	<!-- aici ar trebui sa dea si niste resurse inapoi -->
</script>

<script name="DEMOLISH_SMALL">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_CALL_WORKERS constant-name="DEMOLISH" />
	<ACTIVE_SHOW_JOB small-icon-frame="22" big-icon-frame="26" job-description="JOB_DEMOLISH" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_START_DEMOLISH anim-name="DEMOLISH" time-constant="cost-time"/>
	<WAIT_LOCAL_VAR demolish-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE_SMALL" anim-frame="0" />
	<!-- aici ar trebui sa dea si niste resurse inapoi -->
</script>

<script name="BUY_MALE">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="BUY_MALE" />
	<ACTIVE_START_JOB small-icon-frame="0" big-icon-frame="28" anim-name="BUY_MALE" duration-constant="cost-time" job-description="JOB_TRAIN_WORKER" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_CHANGE_RESOURCES income-males="1" />
</script>

<script name="BUY_FEMALE">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="BUY_FEMALE" />
	<ACTIVE_START_JOB small-icon-frame="1" big-icon-frame="29" anim-name="BUY_FEMALE" duration-constant="cost-time" job-description="JOB_TRAIN_TAXER" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_CHANGE_RESOURCES income-females="1" />
</script>

<script name="BUILD_MARKET">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="MARKET_CLOSED" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="1" />
	<ACTIVE_CALL_WORKERS constant-name="MARKET_CLOSED" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="16" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="2" />
	<ACTIVE_START_BUILD target-anim="MARKET_CLOSED" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="MARKET_CLOSED" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_SAWMILL">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="SAWMILL" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="1" />
	<ACTIVE_CALL_WORKERS constant-name="SAWMILL" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="15" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="2" />
	<ACTIVE_START_BUILD target-anim="SAWMILL" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="SAWMILL" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="SHEPHERD_WHEAT_MILK">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="SHEPHERD_WHEAT_MILK" />
	<ACTIVE_CALL_HUMAN sex="0" />
	<ACTIVE_SHOW_JOB small-icon-frame="8" big-icon-frame="36" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="TALK" visible="1" />
	<ACTIVE_START_JOB small-icon-frame="8" big-icon-frame="36" anim-name="SHEPHERD_WHEAT_MILK" duration-constant="collect-time" job-description="JOB_COLLECTING_GOODS" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_COLLECT_GOODS anim-name="SHEPHERD_WHEAT_MILK" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="SHEPHERD_WHEAT_WOOL">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="SHEPHERD_WHEAT_WOOL" />
	<ACTIVE_CALL_HUMAN sex="0" />
	<ACTIVE_SHOW_JOB small-icon-frame="6" big-icon-frame="34" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="TALK" visible="1" />
	<ACTIVE_START_JOB small-icon-frame="6" big-icon-frame="34" anim-name="SHEPHERD_WHEAT_WOOL" duration-constant="collect-time" job-description="JOB_COLLECTING_GOODS" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_COLLECT_GOODS anim-name="SHEPHERD_WHEAT_WOOL" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="SHEPHERD_BERRIES_MILK">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="SHEPHERD_BERRIES_MILK" />
	<ACTIVE_CALL_HUMAN sex="0" />
	<ACTIVE_SHOW_JOB small-icon-frame="8" big-icon-frame="36" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="TALK" visible="1" />
	<ACTIVE_START_JOB small-icon-frame="8" big-icon-frame="36" anim-name="SHEPHERD_BERRIES_MILK" duration-constant="collect-time" job-description="JOB_COLLECTING_GOODS" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_COLLECT_GOODS anim-name="SHEPHERD_BERRIES_MILK" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="SHEPHERD_BERRIES_WOOL">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="SHEPHERD_BERRIES_WOOL" />
	<ACTIVE_CALL_HUMAN sex="0" />
	<ACTIVE_SHOW_JOB small-icon-frame="6" big-icon-frame="34" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="TALK" visible="1" />
	<ACTIVE_START_JOB small-icon-frame="6" big-icon-frame="34" anim-name="SHEPHERD_BERRIES_WOOL" duration-constant="collect-time" job-description="JOB_COLLECTING_GOODS" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_COLLECT_GOODS anim-name="SHEPHERD_BERRIES_WOOL" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="SAWMILL_BUYWOOD1">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="SAWMILL_BUYWOOD1" />
	<ACTIVE_CALL_WORKERS constant-name="SAWMILL_BUYWOOD1" />
	<ACTIVE_SHOW_JOB small-icon-frame="4" big-icon-frame="32" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_PLAY_ANIMATION anim-name="SAWMILL_WORKING" anim-frame="0" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="IDLE" visible="0" />
	<ACTIVE_SET_SOUND sound-id="SAWMILL" />
	<ACTIVE_START_JOB small-icon-frame="4" big-icon-frame="32" anim-name="SAWMILL_BUYWOOD1" duration-constant="cost-time" job-description="JOB_COLLECTING_GOODS"/>
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_COLLECT_GOODS anim-name="SAWMILL_BUYWOOD1" />
	<ACTIVE_SET_ANIMATION anim-name="SAWMILL" />
	<ACTIVE_STOP_SOUND />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="SAWMILL_BUYWOOD2">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="SAWMILL_BUYWOOD2" />
	<ACTIVE_CALL_WORKERS constant-name="SAWMILL_BUYWOOD2" />
	<ACTIVE_SHOW_JOB small-icon-frame="4" big-icon-frame="32" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_PLAY_ANIMATION anim-name="SAWMILL_WORKING" anim-frame="0" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="IDLE" visible="0" />
	<ACTIVE_SET_SOUND sound-id="SAWMILL" />
	<ACTIVE_START_JOB small-icon-frame="4" big-icon-frame="32" anim-name="SAWMILL_BUYWOOD2" duration-constant="cost-time" job-description="JOB_COLLECTING_GOODS" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_COLLECT_GOODS anim-name="SAWMILL_BUYWOOD2" />
	<ACTIVE_SET_ANIMATION anim-name="SAWMILL" />
	<ACTIVE_STOP_SOUND />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="SAWMILL_BUYWOOD3">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="SAWMILL_BUYWOOD3" />
	<ACTIVE_CALL_WORKERS constant-name="SAWMILL_BUYWOOD3" />
	<ACTIVE_SHOW_JOB small-icon-frame="4" big-icon-frame="32" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_PLAY_ANIMATION anim-name="SAWMILL_WORKING" anim-frame="0" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="IDLE" visible="0" />
	<ACTIVE_SET_SOUND sound-id="SAWMILL" />
	<ACTIVE_START_JOB small-icon-frame="4" big-icon-frame="32" anim-name="SAWMILL_BUYWOOD3" duration-constant="cost-time" job-description="JOB_COLLECTING_GOODS" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_COLLECT_GOODS anim-name="SAWMILL_BUYWOOD3" />
	<ACTIVE_SET_ANIMATION anim-name="SAWMILL" />
	<ACTIVE_STOP_SOUND />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="REPAIR_BRIDGE">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="SELF" />
	<ACTIVE_CALL_WORKERS constant-name="SELF" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="55" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_SOUND sound-id="HOUSE_BUILD" />
	<ACTIVE_START_JOB small-icon-frame="19" big-icon-frame="55" anim-name="SELF" duration-constant="cost-time" job-description="JOB_REPAIR" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_REMOVE_SELECTION />
	<ACTIVE_SET_NODE_BLOCKED blocked="0" />
	<ACTIVE_INCREASE_ANIMATION clear-custom-constant="1" />	
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_STOP_SOUND />
	<PLAY_SOUND ID="BUILD_FINISHED" />
	<GENERATE_PARTICLES_EFFECT effect="GODRAYS" />
</script>

<script name="REPAIR_LANTERN">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="SELF" />
	<ACTIVE_CALL_WORKERS constant-name="SELF" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="55" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_SOUND sound-id="HOUSE_BUILD" />
	<ACTIVE_START_JOB small-icon-frame="19" big-icon-frame="55" anim-name="SELF" duration-constant="cost-time" job-description="JOB_REPAIR" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_REMOVE_SELECTION />
	<ACTIVE_INCREASE_ANIMATION clear-custom-constant="1" />	
	<ACTIVE_RELEASE_HUMANS_WAIT />
	<ACTIVE_STOP_SOUND />
	<PLAY_SOUND ID="BUILD_FINISHED" />
</script>


<script name="PAY_OGRE">
  <ACTIVE_SET_CANCELABLE flag="1" />
  <ACTIVE_SUBTRACT_COST constant-name="SELF" />
  <ACTIVE_CALL_WORKERS constant-name="SELF" />
  <ACTIVE_SHOW_JOB small-icon-frame="COST" big-icon-frame="COST" job-description="JOB_WAITING_WORKERS" />
  <WAIT_LOCAL_VAR workers-arrived="1" />
  <ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="TALK" />
  <ACTIVE_START_JOB small-icon-frame="COST" big-icon-frame="COST" anim-name="SELF" duration-constant="cost-time" job-description="JOB_PAY_OGRE" />
  <WAIT_LOCAL_VAR job-finished="1" />
  <ACTIVE_SET_CANCELABLE flag="0" />
  <ACTIVE_REMOVE_SELECTION />
  <ACTIVE_SET_NODE_BLOCKED blocked="0" />
  <ACTIVE_RELEASE_HUMANS_NOWAIT />
  <ACTIVE_SET_ANIMATION anim-name="OGRE_FED" clear-custom-constant="1" />
  <GENERATE_PARTICLES_EFFECT effect="SMOKE" />
</script>

<script name="FEED_ROBOT">
  <ACTIVE_SET_CANCELABLE flag="1" />
  <ACTIVE_SUBTRACT_COST constant-name="SELF" />
  <ACTIVE_CALL_WORKERS constant-name="SELF" />
  <ACTIVE_SHOW_JOB small-icon-frame="COST" big-icon-frame="COST" job-description="JOB_WAITING_WORKERS" />
  <WAIT_LOCAL_VAR workers-arrived="1" />
  <ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="TALK" />
  <ACTIVE_START_JOB small-icon-frame="COST" big-icon-frame="COST" anim-name="SELF" duration-constant="cost-time" job-description="JOB_PAY_ROBOT" />
  <WAIT_LOCAL_VAR job-finished="1" />
  <ACTIVE_SET_CANCELABLE flag="0" />
  <ACTIVE_REMOVE_SELECTION />
  <ACTIVE_SET_NODE_BLOCKED blocked="0" />
  <ACTIVE_RELEASE_HUMANS_NOWAIT />
  <ACTIVE_SET_ANIMATION anim-name="ROBOT_FED" clear-custom-constant="1" />
  <GENERATE_PARTICLES_EFFECT effect="SMOKE" />
</script>

<script name="OPEN_CHEST_R">
  <ACTIVE_SUBTRACT_COST constant-name="SELF" />
  <ACTIVE_CALL_WORKERS constant-name="SELF" />
  <ACTIVE_SHOW_JOB small-icon-frame="23" big-icon-frame="0" />
  <WAIT_LOCAL_VAR workers-arrived="1" />
  <ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_PICKAXE" />
  <ACTIVE_START_JOB small-icon-frame="23" big-icon-frame="0" anim-name="SELF" duration-constant="cost-time" />
  <WAIT_LOCAL_VAR job-finished="1" />
  <ACTIVE_COLLECT_GOODS />
  <ACTIVE_RELEASE_HUMANS_NOWAIT />
  <ACTIVE_SET_ANIMATION anim-name="CHEST_R_OPEN" clear-custom-constant="1" />
  <GENERATE_PARTICLES_EFFECT effect="GODRAYS" />
</script>

<script name="OPEN_CHEST_L">
  <ACTIVE_SUBTRACT_COST constant-name="SELF" />
  <ACTIVE_CALL_WORKERS constant-name="SELF" />
  <ACTIVE_SHOW_JOB small-icon-frame="23" big-icon-frame="0" />
  <WAIT_LOCAL_VAR workers-arrived="1" />
  <ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_PICKAXE" />
  <ACTIVE_START_JOB small-icon-frame="23" big-icon-frame="0" anim-name="SELF" duration-constant="cost-time" />
  <WAIT_LOCAL_VAR job-finished="1" />
  <ACTIVE_COLLECT_GOODS />
  <ACTIVE_RELEASE_HUMANS_NOWAIT />
  <ACTIVE_SET_ANIMATION anim-name="CHEST_L_OPEN" clear-custom-constant="1" />
  <GENERATE_PARTICLES_EFFECT effect="GODRAYS" />
</script>

<script name="TAKE_ORB">
  <ACTIVE_CALL_WORKERS constant-name="SELF" />
  <ACTIVE_SHOW_JOB small-icon-frame="23" />
  <WAIT_LOCAL_VAR workers-arrived="1" />
  <ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_PICKAXE" />
  <ACTIVE_START_JOB small-icon-frame="23" anim-name="SELF" duration-constant="cost-time" />
  <WAIT_LOCAL_VAR job-finished="1" />
  <ACTIVE_RELEASE_HUMANS_WAIT />
  <ACTIVE_SET_ANIMATION anim-name="REWARD_ORB_TAKEN" />
  <ACTIVE_GIVE_ORB />
  <GENERATE_PARTICLES_EFFECT effect="GODRAYS" />
</script>

<script name="TAKE_RUNE">
  <ACTIVE_CALL_WORKERS constant-name="SELF" />
  <ACTIVE_SHOW_JOB small-icon-frame="23" />
  <WAIT_LOCAL_VAR workers-arrived="1" />
  <ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_PICKAXE" />
  <ACTIVE_START_JOB small-icon-frame="23" anim-name="SELF" duration-constant="cost-time" />
  <WAIT_LOCAL_VAR job-finished="1" />
  <ACTIVE_RELEASE_HUMANS_WAIT />
  <ACTIVE_SET_ANIMATION anim-name="REWARD_RUNE_TAKEN" />
  <ACTIVE_GIVE_RUNE />
  <GENERATE_PARTICLES_EFFECT effect="GODRAYS" />
</script>

<script name="CLEAR_ROAD_PILE_PICKAXE">
  <ACTIVE_SUBTRACT_COST constant-name="SELF" />
  <ACTIVE_CALL_WORKERS constant-name="SELF" />
  <ACTIVE_SHOW_JOB small-icon-frame="23" big-icon-frame="0" />
  <WAIT_LOCAL_VAR workers-arrived="1" />
  <ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_PICKAXE" />
  <ACTIVE_START_JOB small-icon-frame="23" big-icon-frame="10" anim-name="SELF" duration-constant="cost-time" />
  <WAIT_LOCAL_VAR job-finished="1" />
  <ACTIVE_COLLECT_GOODS />
  <ACTIVE_SET_NODE_BLOCKED blocked="0" />
  <ACTIVE_RELEASE_HUMANS_WAIT />
  <ACTIVE_SET_VISIBLE visible="0" />
  <GENERATE_PARTICLES_EFFECT effect="GODRAYS" />
  <PLAY_SOUND ID="PICK_RESOURCE" />
</script>

<script name="CLEAR_ROAD_PILE_AXE">
  <ACTIVE_SUBTRACT_COST constant-name="SELF" />
  <ACTIVE_CALL_WORKERS constant-name="SELF" />
  <ACTIVE_SHOW_JOB small-icon-frame="17" big-icon-frame="0"  />
  <WAIT_LOCAL_VAR workers-arrived="1" />
  <ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_CHOP" />
  <ACTIVE_START_JOB small-icon-frame="17" big-icon-frame="0" anim-name="SELF" duration-constant="cost-time" />
  <WAIT_LOCAL_VAR job-finished="1" />
  <ACTIVE_COLLECT_GOODS />
  <ACTIVE_SET_NODE_BLOCKED blocked="0" />
  <ACTIVE_RELEASE_HUMANS_WAIT />
  <ACTIVE_SET_VISIBLE visible="0" />
  <GENERATE_PARTICLES_EFFECT effect="GODRAYS" />
</script>

<script name="CLEAR_ROAD_PILE_SHOVEL">
  <ACTIVE_SUBTRACT_COST constant-name="SELF" />
  <ACTIVE_CALL_WORKERS constant-name="SELF" />
  <ACTIVE_SHOW_JOB small-icon-frame="18" big-icon-frame="0" />
  <WAIT_LOCAL_VAR workers-arrived="1" />
  <ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_DIG" />
  <ACTIVE_START_JOB small-icon-frame="18" big-icon-frame="0" anim-name="SELF" duration-constant="cost-time" />
  <WAIT_LOCAL_VAR job-finished="1" />
  <ACTIVE_COLLECT_GOODS />
  <ACTIVE_SET_NODE_BLOCKED blocked="0" />
  <ACTIVE_RELEASE_HUMANS_WAIT />
  <ACTIVE_SET_VISIBLE visible="0" />
  <GENERATE_PARTICLES_EFFECT effect="SNOW" />
  <PLAY_SOUND ID="STONEFALL" />
</script>

<!-- turns snowpile blocker into stone definitive blocker -->
<script name="CLEAR_SNOW_TO_STONE">
  <ACTIVE_SUBTRACT_COST constant-name="SELF" />
  <ACTIVE_CALL_WORKERS constant-name="SELF" />
  <ACTIVE_SHOW_JOB small-icon-frame="18" big-icon-frame="0" />
  <WAIT_LOCAL_VAR workers-arrived="1" />
  <ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_DIG" />
  <ACTIVE_START_JOB small-icon-frame="18" big-icon-frame="0" anim-name="SELF" duration-constant="cost-time" />
  <WAIT_LOCAL_VAR job-finished="1" />
  <ACTIVE_COLLECT_GOODS />
  <ACTIVE_SET_ANIMATION anim-name="ROADBLOCK_BOULDER" clear-custom-constant="1" />
  <ACTIVE_SET_NODE_BLOCKED blocked="1" />
  <ACTIVE_RELEASE_HUMANS_WAIT />
  <GENERATE_PARTICLES_EFFECT effect="SNOW" />
  <PLAY_SOUND ID="STONEFALL" />
</script>

<script name="PLANT_FIELD">
	<ACTIVE_SUBTRACT_COST />
	<ACTIVE_CALL_WORKERS />
	<ACTIVE_SHOW_JOB small-icon-frame="17" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_DIG" />
	<ACTIVE_START_JOB small-icon-frame="17" duration-constant="cost-time" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_INCREASE_ANIMATION />	
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="COLLECT_INCOME_FIELD">
	<ACTIVE_SHOW_JOB small-icon-frame="21" big-icon-frame="11" job-description="JOB_WAITING_WORKERS" />
	<ACTIVE_CALL_HUMAN sex="1" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_GATHER" />
	<ACTIVE_START_JOB small-icon-frame="21" big-icon-frame="11" duration-constant="collect-time" />
	<WAIT_LOCAL_VAR job-finished="1" />
	<ACTIVE_COLLECT_GOODS />	
	<ACTIVE_SET_ANIMATION anim-name="FIELD_EMPTY" />
	<ACTIVE_RELEASE_HUMANS_NOWAIT />
</script>

<!-- construire cladiri producatoare de resurse -->
<script name="BUILD_WINDMILL">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="WINDMILL" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="WINDMILL" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="7" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="WINDMILL" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="WINDMILL" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_WHEAT_FARM">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="WHEAT_FARM" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="WHEAT_FARM" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="3" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="WHEAT_FARM" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="WHEAT_FARM" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_SHEEP_KEEP">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="SHEEP_KEEP" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="SHEEP_KEEP" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="4" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="SHEEP_KEEP" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="SHEEP_KEEP" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_BERRY_FARM">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="BERRY_FARM" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="BERRY_FARM" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="5" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="BERRY_FARM" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="BERRY_FARM" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_CATTLE_FARM">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="CATTLE_FARM" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="CATTLE_FARM" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="6" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="CATTLE_FARM" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="CATTLE_FARM" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_LOOM">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="LOOM" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="LOOM" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="8" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="LOOM" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="LOOM" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_BERRY_CRUSHER">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="BERRY_CRUSHER" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="BERRY_CRUSHER" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="9" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="BERRY_CRUSHER" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="BERRY_CRUSHER" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_DOLLS_FACTORY">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="DOLLS_FACTORY" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="DOLLS_FACTORY" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="11" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="DOLLS_FACTORY" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="DOLLS_FACTORY" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_YOGURT_FACTORY">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="YOGURT_FACTORY" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="YOGURT_FACTORY" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="12" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="YOGURT_FACTORY" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="YOGURT_FACTORY" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_ICECREAM_FACTORY">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="ICECREAM_FACTORY" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="ICECREAM_FACTORY" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="13" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="ICECREAM_FACTORY" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="ICECREAM_FACTORY" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_CHEESE_FACTORY">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="CHEESE_FACTORY" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="CHEESE_FACTORY" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="10" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="CHEESE_FACTORY" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="CHEESE_FACTORY" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="BUILD_HATS_FACTORY">
	<ACTIVE_SET_CANCELABLE flag="1" />
	<ACTIVE_SUBTRACT_COST constant-name="HATS_FACTORY" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="3" />
	<ACTIVE_CALL_WORKERS constant-name="HATS_FACTORY" />
	<ACTIVE_SHOW_JOB small-icon-frame="19" big-icon-frame="14" job-description="JOB_WAITING_WORKERS" />
	<WAIT_LOCAL_VAR workers-arrived="1" />
	<ACTIVE_SET_ASSIGNED_HUMANS_STATUS status="WORKING_BUILD" />
	<ACTIVE_SET_ANIMATION anim-name="BUILDING_SITE" anim-frame="4" />
	<ACTIVE_START_BUILD target-anim="HATS_FACTORY" />
	<WAIT_LOCAL_VAR build-finished="1" />
	<ACTIVE_SET_CANCELABLE flag="0" />
	<ACTIVE_SET_ANIMATION anim-name="HATS_FACTORY" />
	<ACTIVE_RELEASE_HUMANS_WAIT />
</script>

<script name="HIRE_PERMANENT_WORKER">
	<ACTIVE_CALL_HUMAN sex="0" />
</script>

<script name="FIRE_PERMANENT_WORKER">
	<ACTIVE_RELEASE_HUMANS_NOWAIT count="1" />
</script>

<script name="HIRE_PERMANENT_BUILDER">
	<ACTIVE_CALL_WORKERS constant-name="NEED_ONE_MALE" />
</script>
