this tutorial requires userpatch 1.5 and will teach you how to create a deer spawner
In script, Deer spawn sharing tiles with wolves, then deer bug sends them to 0 0
PLAYER_SETUP
direct_placement is needed to use assign_to AT_[PLAYER|TEAM|COLOR] with land_position
effect_amount needs to be placed in PLAYER_SETUP
LAND_GENERATION
base_size makes a perfect square when paired with number_of_tiles 0
TERRAIN_GENERATION
spacing_to_other_terrain_types is used to create rings of different terrain
OBJECTS_GENERATION
terrain_to_place_on is used with the terrain rings from terrain_generation
resource_delta changes the time for each wave of wolves to decay, causing delayed waves of deer
CONNECTION_GENERATION
not necessary, but it was an easy way to connect the deer with players
First, create the deer and player land, the next step is to make rings of different terrain for the deer and wolves. Then spawn deer/wolf objects so that each successive ring has wolves with a higher resource_delta, so it takes longer to decay than the last. This effect causes several waves of deer to pass by players during the course of a game
USA
katsup or mustard
In script, Deer spawn sharing tiles with wolves, then deer bug sends them to 0 0
PLAYER_SETUP
direct_placement is needed to use assign_to AT_
effect_amount needs to be placed in PLAYER_SETUP
LAND_GENERATION
base_size makes a perfect square when paired with number_of_tiles 0
TERRAIN_GENERATION
spacing_to_other_terrain_types is used to create rings of different terrain
OBJECTS_GENERATION
terrain_to_place_on is used with the terrain rings from terrain_generation
resource_delta changes the time for each wave of wolves to decay, causing delayed waves of deer
CONNECTION_GENERATION
not necessary, but it was an easy way to connect the deer with players
First, create the deer and player land, the next step is to make rings of different terrain for the deer and wolves. Then spawn deer/wolf objects so that each successive ring has wolves with a higher resource_delta, so it takes longer to decay than the last. This effect causes several waves of deer to pass by players during the course of a game
/*--------------------------------------*/
/* Deer Season */
/*--------------------------------------*/
<PLAYER_SETUP>
direct_placement
#const SET_ATTRIBUTE 0 /* Type: Attribute Const */
#const AT_TEAM 2
#const ATTR_HITPOINTS 0
effect_amount SET_ATTRIBUTE DIRE_WOLF ATTR_HITPOINTS 0
<LAND_GENERATION>
base_terrain FOREST
create_land
{
terrain_type DIRT
land_position 90 90
zone 2
base_size 9
number_of_tiles 0
}
/*--------------------------------------*/
/* Player Lands */
/*--------------------------------------*/
create_land
{
terrain_type ICE
land_position 10 20
zone 2
base_size 10
number_of_tiles 0
assign_to AT_TEAM -10 0 0
}
create_land
{
terrain_type ICE
land_position 20 10
zone 2
base_size 10
number_of_tiles 0
assign_to AT_TEAM -10 0 0
}
<TERRAIN_GENERATION>
create_terrain DIRT2
{
base_terrain DIRT
number_of_clumps 99
land_percent 10
spacing_to_other_terrain_types 1
}
create_terrain DIRT3
{
base_terrain DIRT2
number_of_clumps 99
land_percent 10
spacing_to_other_terrain_types 1
}
create_terrain GRASS
{
base_terrain DIRT3
number_of_clumps 99
land_percent 10
spacing_to_other_terrain_types 1
}
create_terrain GRASS2
{
base_terrain GRASS
number_of_clumps 99
land_percent 10
spacing_to_other_terrain_types 1
}
create_terrain GRASS3
{
base_terrain GRASS2
number_of_clumps 99
land_percent 10
spacing_to_other_terrain_types 1
}
<OBJECTS_GENERATION>
/*--------------------------------------*/
/* PLAYER OBJECTS */
/*--------------------------------------*/
create_object TOWN_CENTER
{
set_place_for_every_player
min_distance_to_players 0
max_distance_to_players 0
}
create_object VILLAGER
{
set_place_for_every_player
min_distance_to_players 6
max_distance_to_players 6
}
create_object SCOUT
{
number_of_objects 1
set_place_for_every_player
min_distance_to_players 7
max_distance_to_players 9
}
/*--------------------------------------*/
/* First Wave */
/*--------------------------------------*/
create_object DEER
{
number_of_groups 99
number_of_objects 49
set_gaia_object_only
terrain_to_place_on DIRT
}
create_object DIRE_WOLF
{
number_of_groups 99
number_of_objects 49
set_gaia_object_only
terrain_to_place_on DIRT
resource_delta 2
}
/*--------------------------------------*/
/* Second Wave */
/*--------------------------------------*/
create_object DEER
{
number_of_groups 99
number_of_objects 49
set_gaia_object_only
terrain_to_place_on DIRT2
}
create_object DIRE_WOLF
{
number_of_groups 99
number_of_objects 49
set_gaia_object_only
terrain_to_place_on DIRT2
resource_delta 20
}
/*--------------------------------------*/
/* Third Wave */
/*--------------------------------------*/
create_object DEER
{
number_of_groups 99
number_of_objects 49
set_gaia_object_only
terrain_to_place_on DIRT3
}
create_object DIRE_WOLF
{
number_of_groups 99
number_of_objects 49
set_gaia_object_only
terrain_to_place_on DIRT3
resource_delta 40
}
/*--------------------------------------*/
/* Fourth Wave */
/*--------------------------------------*/
create_object DEER
{
number_of_groups 99
number_of_objects 49
set_gaia_object_only
terrain_to_place_on GRASS
}
create_object DIRE_WOLF
{
number_of_groups 99
number_of_objects 49
set_gaia_object_only
terrain_to_place_on GRASS
resource_delta 60
}
/*--------------------------------------*/
/* Fifth Wave */
/*--------------------------------------*/
create_object DEER
{
number_of_groups 99
number_of_objects 49
set_gaia_object_only
terrain_to_place_on GRASS2
}
create_object DIRE_WOLF
{
number_of_groups 99
number_of_objects 49
set_gaia_object_only
terrain_to_place_on GRASS2
resource_delta 80
}
/*--------------------------------------*/
/* Sixth Wave */
/*--------------------------------------*/
create_object DEER
{
number_of_groups 99
number_of_objects 49
set_gaia_object_only
terrain_to_place_on GRASS3
}
create_object DIRE_WOLF
{
number_of_groups 99
number_of_objects 49
set_gaia_object_only
terrain_to_place_on GRASS3
resource_delta 100
}
<CONNECTION_GENERATION>
create_connect_all_lands
{
replace_terrain FOREST ICE
terrain_size ICE 10 0
}
USA
katsup or mustard
[This message has been edited by local boi (edited 06-07-2018 @ 08:05 PM).]