snippets.aoe2map.net

Share Age of Empires 2 Random Map Script snippets online

Changing Looks of Forests (WK+UP)
/* By using palmforest as a source, you can have trees on a desert soil. 
By using snowpineforest as a source, you can have trees on snowy grass soil.
By using Oak, Jungle, Bamboo, or pine forest, your new forest has leaves as soil.
By using Mangrove forest, your new forest has mangroveshallows as soil. (and trees coverage is ~75%)
By using Acacia forest, your new forest has savannah as soil. (and trees coverage is ~50%)
By using Baobab forest, your new forest has red/green dirt soil. (and trees coverage is ~25%) */

/* TERRAIN CONSTANTS */
	#const FOREST 10 
	#const PALM_DESERT 13 
	#const BAOBAB_FOREST 16 
	#const JUNGLE 17 
	#const BAMBOO 18 
	#const PINE_FOREST 19 
	#const MANGROVE_FOREST 20 
	#const SNOW_FOREST 21 
	#const ACACIA_FOREST 41 

/* TREE CONSTANTS */
	#const BAMBOO_TREE 348 /* bamboo tree */		
	#const OAK_FOREST_TREE 349 /* oak tree */	
	#const PINE_FOREST_TREE 350 /* pine tree */	
	#const PALM_FOREST_TREE 351 /* palm tree */	
	#const SNOW_PINE_TREE 413 /* snow tree */	
	#const JUNGLE_TREE 414 /* jungle tree */

	#const DLC_DRAGONTREE 1051 /* dragon tree */	
	#const DLC_BAOBABTREE 1052 /* baobab tree */	
	#const DLC_ACACIATREE 1063 /* acacia tree */	
	#const MANGROVE_TREE 1144 /* mangrove tree */	
	#const RAINFOREST_TREE 1146 /* rainforest tree */

	#const BUSH 302 /* jungle bush */	
	#const DLC_AFRICANBUSH 1053 /* dry bush */	
	#const DLC_AFRICANBUSH_2 1054 /* snowy bush */	

	#const TREE_F 404 /* brown dry tree */
	#const TREE_I 407 /* black dry tree */	


<PLAYER_SETUP>
/* upgrading PalmForest into DragonForest */
	effect_amount GAIA_UPGRADE_UNIT PALM_FOREST_TREE DLC_DRAGONTREE 0

/* upgrading JungleForest into RainForest */
	effect_amount GAIA_UPGRADE_UNIT JUNGLE_TREE RAINFOREST_TREE 0

/* upgrading SnowPineForest into SnowBushes */
	effect_amount GAIA_UPGRADE_UNIT SNOW_PINE_TREE DLC_AFRICANBUSH_2 0

/* upgrading BaobabForest into Dry PineForest */
	effect_amount GAIA_UPGRADE_UNIT DLC_BAOBABTREE PINE_FOREST_TREE 0