You must be logged in to post messages.
Please login or register

AI and RM Scripting
Moderated by Crazed Ewok, Gen_Rhys_Dallows

Hop to:    
Welcome! You are not logged in. Please Login or Register.No replies
SWGB Heaven » Forums » AI and RM Scripting » Small favor.
Bottom
Topic Subject:Small favor.
Captain Keno
Clone Trooper
posted 08-15-18 09:08 PM EDT (US)         
I have a conversion of an RMS in progress for SWGB, I got most of it, but I need help. This random map has codes that says this:

if ALPINE and ASIAN map. It's from AoE2 random map scripting. Does anyone know what map type it's comparable to, if compatible, with SWGB map types?

The part of the script I am working on is this:

<LAND_GENERATION>

base_terrain WATER

start_random
percent_chance 20
#define DESERT_MAP
percent_chance 20
#define ALPINE_MAP
percent_chance 20
#define ASIAN_MAP
end_random

create_player_lands
{
if DESERT_MAP
terrain_type DIRT
elseif ALPINE_MAP
terrain_type GRASS2
elseif ASIAN_MAP
terrain_type GRASS2
else
terrain_type GRASS
endif
start_random
percent_chance 50
land_percent 52
percent_chance 50
land_percent 60
end_random
base_size 8
start_random
percent_chance 25
left_border 8
top_border 8
bottom_border 8
percent_chance 25
left_border 8
top_border 8
right_border 8
percent_chance 25
right_border 8
left_border 8
bottom_border 8
percent_chance 25
right_border 8
top_border 8
bottom_border 8
end_random
border_fuzziness 15
zone 1
other_zone_avoidance_distance 7
clumping_factor 15
}

/* ****************************************************** */
<TERRAIN_GENERATION>

/* MIXING WATER */

create_terrain MED_WATER
{
base_terrain WATER
number_of_clumps 10
spacing_to_other_terrain_types 2
land_percent 40
}

create_terrain MED_WATER
{
base_terrain WATER
number_of_clumps 30
spacing_to_other_terrain_types 1
land_percent 1
}

create_terrain DEEP_WATER
{
base_terrain MED_WATER
number_of_clumps 8
spacing_to_other_terrain_types 3
land_percent 20
}

create_terrain DEEP_WATER
{
base_terrain MED_WATER
number_of_clumps 30
spacing_to_other_terrain_types 1
land_percent 1
}

create_terrain MED_WATER
{
base_terrain DEEP_WATER
number_of_clumps 30
spacing_to_other_terrain_types 1
land_percent 1
}

create_terrain WATER
{
base_terrain MED_WATER
number_of_clumps 30
spacing_to_other_terrain_types 1
land_percent 1
}

/* PRIMARY FOREST */

if DESERT_MAP
create_terrain PALM_DESERT
{
base_terrain DIRT
spacing_to_other_terrain_types 5
land_percent 9
number_of_clumps 10
set_avoid_player_start_areas
set_scale_by_groups
}
elseif ALPINE_MAP
create_terrain PINE_FOREST
{
base_terrain GRASS2
spacing_to_other_terrain_types 5
land_percent 9
number_of_clumps 10
set_avoid_player_start_areas
set_scale_by_groups
}
elseif ASIAN_MAP
create_terrain PINE_FOREST
{
base_terrain GRASS2
spacing_to_other_terrain_types 5
land_percent 9
number_of_clumps 10
set_avoid_player_start_areas
set_scale_by_groups
}
else
create_terrain FOREST
{
base_terrain GRASS
spacing_to_other_terrain_types 5
land_percent 9
number_of_clumps 10
set_avoid_player_start_areas
set_scale_by_groups
}
endif

/* PRIMARY PATCH */

if DESERT_MAP
create_terrain DESERT
{
base_terrain DIRT
number_of_clumps 12
spacing_to_other_terrain_types 0
land_percent 8
set_scale_by_size
}
elseif ALPINE_MAP
create_terrain GRASS3
{
base_terrain GRASS2
number_of_clumps 8
spacing_to_other_terrain_types 0
land_percent 6
set_scale_by_size
}
elseif ASIAN_MAP
create_terrain GRASS3
{
base_terrain GRASS2
number_of_clumps 8
spacing_to_other_terrain_types 0
land_percent 6
set_scale_by_size
}
else
create_terrain DIRT
{
base_terrain GRASS
number_of_clumps 8
spacing_to_other_terrain_types 0
land_percent 9
set_scale_by_size
}
endif

/* SECONDARY FOREST */

if DESERT_MAP
create_terrain FOREST
{
base_terrain GRASS
spacing_to_other_terrain_types 3
land_percent 1
number_of_clumps 3
set_avoid_player_start_areas
set_scale_by_groups
}
elseif ALPINE_MAP
create_terrain FOREST
{
base_terrain GRASS2
spacing_to_other_terrain_types 3
land_percent 1
number_of_clumps 3
set_avoid_player_start_areas
set_scale_by_groups
}
elseif ASIAN_MAP
create_terrain BAMBOO
{
base_terrain GRASS2
spacing_to_other_terrain_types 3
land_percent 1
number_of_clumps 3
set_avoid_player_start_areas
set_scale_by_groups
}
else
create_terrain PALM_DESERT
{
base_terrain DIRT
spacing_to_other_terrain_types 3
land_percent 1
number_of_clumps 3
set_avoid_player_start_areas
set_scale_by_groups
}
endif

/* SECONDARY PATCH */

if DESERT_MAP
create_terrain DIRT3
{
base_terrain DIRT
number_of_clumps 24
spacing_to_other_terrain_types 0
land_percent 2
set_scale_by_size
}
elseif ALPINE_MAP
create_terrain DIRT3
{
base_terrain GRASS2
number_of_clumps 24
spacing_to_other_terrain_types 0
land_percent 2
set_scale_by_size
}
elseif ASIAN_MAP
create_terrain DIRT3
{
base_terrain GRASS2
number_of_clumps 24
spacing_to_other_terrain_types 0
land_percent 2
set_scale_by_size
}
else
create_terrain GRASS3
{
base_terrain GRASS
number_of_clumps 24
spacing_to_other_terrain_types 0
land_percent 2
set_scale_by_size
}
endif

/* TERTIARY PATCH */

if DESERT_MAP
create_terrain GRASS3
{
base_terrain DIRT
number_of_clumps 30
spacing_to_other_terrain_types 0
land_percent 2
set_scale_by_size
}
elseif ALPINE_MAP
create_terrain GRASS
{
base_terrain GRASS2
number_of_clumps 30
spacing_to_other_terrain_types 0
land_percent 2
set_scale_by_size
}
elseif ASIAN_MAP
create_terrain GRASS
{
base_terrain GRASS2
number_of_clumps 30
spacing_to_other_terrain_types 0
land_percent 2
set_scale_by_size
}
else
create_terrain DIRT3
{
base_terrain GRASS
number_of_clumps 30
spacing_to_other_terrain_types 0
land_percent 2
set_scale_by_size
}
endif

If anyone has some advice, it would be cool to help out. I already have the resources, starting equipment, cliff generation and land connection worked out, I just need those parts fixed, as seen above.

[This message has been edited by Captain Keno (edited 08-15-2018 @ 09:09 PM).]

You must be logged in to post messages.
Please login or register

Hop to:    

SWGB Heaven | HeavenGames