Share Age of Empires 2 Random Map Script snippets online
create_object GOLD
{
if TINY_MAP
number_of_objects 3
number_of_groups 2
elseif SMALL_MAP
number_of_objects 3
number_of_groups 3
elseif MEDIUM_MAP
number_of_objects 3
number_of_groups 4
elseif LARGE_MAP
number_of_objects 3
number_of_groups 5
elseif HUGE_MAP
number_of_objects 4
number_of_groups 4
elseif GIGANTIC_MAP
number_of_objects 5
number_of_groups 4
endif
set_tight_grouping
min_distance_to_players 40
min_distance_group_placement 8
if TINY_MAP
temp_min_distance_group_placement 16
elseif SMALL_MAP
temp_min_distance_group_placement 18
elseif MEDIUM_MAP
temp_min_distance_group_placement 20
elseif LARGE_MAP
temp_min_distance_group_placement 22
elseif HUGE_MAP
temp_min_distance_group_placement 24
elseif GIGANTIC_MAP
temp_min_distance_group_placement 28
endif
}