帝国时代随机地图脚本实例.docx
- 文档编号:27610741
- 上传时间:2023-07-03
- 格式:DOCX
- 页数:48
- 大小:19.72KB
帝国时代随机地图脚本实例.docx
《帝国时代随机地图脚本实例.docx》由会员分享,可在线阅读,更多相关《帝国时代随机地图脚本实例.docx(48页珍藏版)》请在冰豆网上搜索。
帝国时代随机地图脚本实例
AnnotatedRandomMapScript
ThefollowingscriptwascreatedbyEnsembleStudiosfortheCoastalRandomMaptype.Youcanuseittofigureouthowtostartmapsofyourownandseewhatstandardresourcesgointomostmaps.Rememberthateverythingbetween/*slashmarks*/isacommentandisnotreadbytheMapGenerator.
/*************COASTAL*************/
/*29MAR00*/
/********************************************************/
random_placement
/********************************************************/
base_terrainWATER
/*Coastalisbasicallyalargeislandplacedonwater,sowateristhebaseterrain.Usingwater1(theshallowwater)makesiteasiertoadddeeperwaterlater*/
start_random
percent_chance15
#defineDESERT_MAP
percent_chance15
#defineALPINE_MAP
percent_chance15
#defineASIAN_MAP
percent_chance15
#defineFROZEN_MAP
percent_chance15
#defineTROPICAL_MAP
end_random
/*Coastalmapscanhavedifferentterrain,suchasdesertorrainforest.Thereisa15%chanceofthemapusingoneofthesedifferentterrainsets.Thesenamesarejustusedasvariables.Youcandefineyourown.*/
create_player_lands
{
ifDESERT_MAP
terrain_typeDIRT
elseifALPINE_MAP
terrain_typeGRASS2
elseifASIAN_MAP
terrain_typeGRASS2
elseifFROZEN_MAP
terrain_typeSNOW
else
terrain_typeGRASS
endif
/*Dependingonwhatterraintypeischosen,weuseadifferentbaseterrain*/
start_random
percent_chance33
land_percent52
percent_chance33
land_percent60
percent_chance33
land_percent65
end_random
/*Theamountoflandusedisrandom.Using52%meansthereisoftenalakeinthemiddleofthemap.Using65%meansthattheretendstobealarge,squarelandmass*/
base_size8
start_random
percent_chance25
left_border6
top_border8
bottom_border6
percent_chance25
left_border6
top_border6
right_border8
percent_chance25
right_border6
left_border6
bottom_border8
percent_chance25
right_border8
top_border6
bottom_border6
end_random
/*Thereisarandomchanceforvariousbordersizes.Coastalalwayshasoneedgethattouchestheborderofthemap,butitisrandomwhichborderthisis*/
border_fuzziness15
zone1
other_zone_avoidance_distance7
clumping_factor15
}
/********************************************************/
/*MIXINGWATER*/
create_terrainMED_WATER
{
base_terrainWATER
number_of_clumps10
spacing_to_other_terrain_types2
land_percent40
}
create_terrainMED_WATER
{
base_terrainWATER
number_of_clumps30
spacing_to_other_terrain_types1
land_percent1
}
create_terrainDEEP_WATER
{
base_terrainMED_WATER
number_of_clumps8
spacing_to_other_terrain_types3
land_percent20
}
create_terrainDEEP_WATER
{
base_terrainMED_WATER
number_of_clumps30
spacing_to_other_terrain_types1
land_percent1
}
create_terrainMED_WATER
{
base_terrainDEEP_WATER
number_of_clumps30
spacing_to_other_terrain_types1
land_percent1
}
create_terrainWATER
{
base_terrainMED_WATER
number_of_clumps30
spacing_to_other_terrain_types1
land_percent1
}
/*Thisaddsdeeperwatertotheshallowwater.Weusesmallpercentagesandspacingof1-3tilestomakesuretheshallowwaterisclosesttolandandotherwatersareplacedfartherfromland.Experimentwithdifferentpercentagesofwatersothattherearenotlargeexpansesofonecolor.*/
/*PRIMARYFOREST*/
ifDESERT_MAP
create_terrainPALM_DESERT
{
base_terrainDIRT
spacing_to_other_terrain_types5
land_percent9
number_of_clumps10
set_avoid_player_start_areas
set_scale_by_groups
}
elseifALPINE_MAP
create_terrainPINE_FOREST
{
base_terrainGRASS2
spacing_to_other_terrain_types5
land_percent9
number_of_clumps10
set_avoid_player_start_areas
set_scale_by_groups
}
elseifFROZEN_MAP
create_terrainSNOW_FOREST
{
base_terrainSNOW
spacing_to_other_terrain_types5
land_percent9
number_of_clumps10
set_avoid_player_start_areas
set_scale_by_groups
}
elseifASIAN_MAP
create_terrainPINE_FOREST
{
base_terrainGRASS2
spacing_to_other_terrain_types5
land_percent9
number_of_clumps10
set_avoid_player_start_areas
set_scale_by_groups
}
elseifTROPICAL_MAP
create_terrainJUNGLE
{
base_terrainGRASS
spacing_to_other_terrain_types5
land_percent9
number_of_clumps10
set_avoid_player_start_areas
set_scale_by_groups
}
else
create_terrainFOREST
{
base_terrainGRASS
spacing_to_other_terrain_types5
land_percent9
number_of_clumps10
set_avoid_player_start_areas
set_scale_by_groups
}
endif
/*ThePrimaryForestonCoastalcovers9%ofthemapandcanbeoakforest,pineforestorevenrainforest,dependingonthekindofmapwewant*/
/*PRIMARYPATCH*/
ifDESERT_MAP
create_terrainDESERT
{
base_terrainDIRT
number_of_clumps12
spacing_to_other_terrain_types0
land_percent8
set_scale_by_size
}
elseifALPINE_MAP
create_terrainGRASS3
{
base_terrainGRASS2
number_of_clumps8
spacing_to_other_terrain_types0
land_percent6
set_scale_by_size
}
elseifFROZEN_MAP
create_terrainGRASS_SNOW
{
base_terrainSNOW
number_of_clumps8
spacing_to_other_terrain_types0
land_percent6
set_scale_by_size
}
elseifASIAN_MAP
create_terrainGRASS3
{
base_terrainGRASS2
number_of_clumps8
spacing_to_other_terrain_types0
land_percent6
set_scale_by_size
}
else
create_terrainDIRT
{
base_terrainGRASS
number_of_clumps8
spacing_to_other_terrain_types0
land_percent9
set_scale_by_size
}
endif
/*Thesepatchesandadditionalforestsareusedforvariation.Addinggrassordirtontopofthebaseterrainisreallyonlyforcosmeticpurposes.Forestsaffecthowdefensivethemapcanbeandhowharditistopathfromonetowntoanother*/
/*SECONDARYFOREST*/
ifDESERT_MAP
create_terrainFOREST
{
base_terrainGRASS
spacing_to_other_terrain_types3
land_percent1
number_of_clumps3
set_avoid_player_start_areas
set_scale_by_groups
}
elseifALPINE_MAP
create_terrainFOREST
{
base_terrainGRASS2
spacing_to_other_terrain_types3
land_percent1
number_of_clumps3
set_avoid_player_start_areas
set_scale_by_groups
}
elseifFROZEN_MAP
create_terrainSNOW_FOREST
{
base_terrainGRASS_SNOW
spacing_to_other_terrain_types3
land_percent1
number_of_clumps3
set_avoid_player_start_areas
set_scale_by_groups
}
elseifASIAN_MAP
create_terrainBAMBOO
{
base_terrainGRASS2
spacing_to_other_terrain_types3
land_percent1
number_of_clumps3
set_avoid_player_start_areas
set_scale_by_groups
}
else
create_terrainPALM_DESERT
{
base_terrainDIRT
spacing_to_other_terrain_types3
land_percent1
number_of_clumps3
set_avoid_player_start_areas
set_scale_by_groups
}
endif
/*SECONDARYPATCH*/
ifDESERT_MAP
create_terrainDIRT3
{
base_terrainDIRT
number_of_clumps24
spacing_to_other_terrain_types0
land_percent2
set_scale_by_size
}
elseifALPINE_MAP
create_terrainDIRT3
{
base_terrainGRASS2
number_of_clumps24
spacing_to_other_terrain_types0
land_percent2
set_scale_by_size
}
elseifFROZEN_MAP
create_terrainDIRT_SNOW
{
base_terrainSNOW
number_of_clumps24
spacing_to_other_terrain_types0
land_percent2
set_scale_by_size
}
elseifASIAN_MAP
create_terrainDIRT3
{
base_terrainGRASS2
number_of_clumps24
spacing_to_other_terrain_types0
land_percent2
set_scale_by_size
}
else
create_terrainGRASS3
{
base_terrainGRASS
number_of_clumps24
spacing_to_other_terrain_types0
land_percent2
set_scale_by_size
}
endif
/*TERTIARYPATCH*/
ifDESERT_MAP
create_terrainGRASS3
{
base_terrainDIRT
number_of_clumps30
spacing_to_other_terrain_types0
land_percent2
set_scale_by_size
}
elseifALPINE_MAP
create_terrainGRASS
{
base_terrainGRASS2
number_of_clumps30
spacing_to_other_terrain_types0
land_percent2
set_scale_by_size
}
elseifFROZEN_MAP
create_terrainGRASS2
{
base_terrainGRASS_SNOW
number_of_clumps30
spacing_to_other_terrain_types0
land_percent2
set_scale_by_size
}
elseifASIAN_MAP
create_terrainGRASS
{
base_terrainGRASS2
number_of_clumps30
spacing_to_other_terrain_types0
land_percent2
set_scale_by_size
}
else
create_terrainDIRT3
{
base_terrainGRASS
number_of_clumps30
spacing_to_other_terrain_types0
land_percent2
set_scale_by_size
}
endif
/********************************************************/
/*PLAYERSTARTOBJECTS*/
create_objectTOWN_CENTER
{
set_place_for_every_player
group_placement_radius18
min_distance_to_players0
max_distance_to_players0
}
create_objectVILLAGER
{
set_place_for_every_player
min_distance_to_players6
max_distance_to_players6
}
create_objectSCOUT
{
number_of_objects1
set_place_for_every_player
min_distance_to_players7
max_distance_to_players9
}
create_objectRELIC
{
number_of_objects5
min_distance_to_players25
temp_min_distance_group_placement20
}
/*EachplayerstartswithaTownCenter,villagersandascout.TheMapGeneratorknowsthatChineseneed6villagersandthatAztecshaveanEagleWarrior.Therearealso5Relicsplacedonmostmaptypes.*/
/*SPECIALSTUFFFORREGICIDE*/
ifREGICIDE
create_objectVILLAGER
{
number_of_objects7
set_place_for_every_player
min_distance_to_players6
max_distance_to_players6
}
create_objectKING
{
set_place_for_every_player
min_distance_to_players6
max_distance_to_players6
}
create_objectCASTLE
{
set_place_for_every_player
min_distance_to_players10
max_distance_to_players10
}
endif
/*RegicidegamesrequireaCastle,Kingandmorevillagers.Othergametypes,suchasDefendtheWond
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 帝国时代 随机 地图 脚本 实例