Terrain can be defined as the ground plane. It is the basic tile based foundation that establishes the game world. This document defines those attributes.[[BR]][[BR]]The placement of what texture goes where is defined by random map script or a map editor. They will be able to control troop movement, structure placement, ambush points, strategic harbours, and impassable mountain ranges with these tools.[[BR]][[BR]]There are going to be lots of different terrains, and many of them will share similar attributes. To reduce the hassle of creating XML for each terrain tile, terrain XML should have the following support: 1. Multiple terrain objects can be stored in the same XML file (separated by their tags). 1. Multiple terrain XML files can be read from the same folder. 1. Terrains can inherit attributes from other terrains by specifying a "parent" (see the section on inheritance in the '''XML Header Overview'''). ||'''Skin'''|| [[BR]]'''''BRIEF DESCRIPTION ::'''''Specifies the name and path of the terrain's texture. Note that the icon for the terrain is automatically generated as a thumbnail of this image.[[BR]][[BR]]Animated textures can be specified here. This feature could be used for all sorts of effects: waterfalls, water effects, UI effects, fire, conveyor belts, skyboxes.[[BR]][[BR]]'''Dirt'''[[BR]]- dirt1 - bare[[BR]]- dirt2 - cracked[[BR]]- dirt3 – mud[[BR]][[BR]]'''Grass'''[[BR]]- grass1 - plain[[BR]]- grass2 - lush[[BR]]- grass3 - long[[BR]]- grass4 - weeds[[BR]]- grass5 – short/long mix[[BR]]- grass6 – bunched dry[[BR]]- grass7 – yellow[[BR]]- grass8 – dark tufts[[BR]]- grass9 – mixed greens, weeds[[BR]][[BR]]'''Sand'''[[BR]]- sand1 - plain[[BR]]- sand2 - rippled[[BR]]- sand3 – rough, rocky[[BR]][[BR]]'''Forrest'''[[BR]]- forest1 – leafy[[BR]]- forest2 – needles[[BR]]- forest3 – fronds[[BR]]- forest4 – scrub[[BR]]- forest5 – logged[[BR]][[BR]]'''Road'''[[BR]]- road1 – Persian[[BR]]- road2 – Roman[[BR]]- road3 – Hellenic[[BR]]- road4 – Celtic[[BR]]- road5 – Carthaginian[[BR]]- road6 – Iberian[[BR]]- road7 – gravel - gray[[BR]]- road8 – gravel - brown[[BR]][[BR]]'''Water Sub-Terrain '''[[BR]]- coral1 - brown[[BR]]- coral2 - turquoise[[BR]]- coral3 - red[[BR]]- rock1 - light[[BR]]- rock2 - medium[[BR]]- rock3 - dark[[BR]]- pebble1 - small[[BR]]- pebble2 - large[[BR]][[BR]]'''Beach'''[[BR]]- sand1[[BR]]- sand2[[BR]]- sand3[[BR]][[BR]]'''Cliff'''[[BR]]- cliff1 - brown[[BR]]- cliff2 – brown, vegetation[[BR]]- cliff3 – brown, cracks[[BR]]- cliff4 - gray[[BR]]- cliff5 – gray, vegetation[[BR]]- cliff6 – gray, cracks[[BR]][[BR]]'''Special'''[[BR]]- furrows1 – dirt[[BR]]- furrows2 – dirt, small plants[[BR]]- furrows3 – dirt, large plants[[BR]]- black[[BR]]- lava[[BR]]- structure – under structures[[BR]][[BR]] ||'''MMap'''|| [[BR]]'''''BRIEF DESCRIPTION ::'''''The RGB colour used to represent this terrain on the Mini Map.[[BR]][[BR]]Note: If no value is specified, then the terrain colour is determined by finding the primary colour used in the skin, as in the current highly cool !ScEd.[[BR]][[BR]] ||'''Group'''|| [[BR]]'''''BRIEF DESCRIPTION ::'''''The types/classes/groups to which this terrain belongs.[[BR]][[BR]]Used when painting by random group, and to specify under what categories it appears in the Editor. For example, if the user is painting group "Arid Grass", it'll randomly pick terrains with this type to paint. Actors like trees should use the same principle (eg an Oak Tree group for all oak trees). [[BR]][[BR]] ||Properties''''''|| [[BR]]'''''BRIEF DESCRIPTION ::'''''List of special properties for the terrain.[[BR]][[BR]]For example, "buildable" means that structures can be built on the terrain, assuming that it is flat enough.[[BR]][[BR]] ||Passable''''''|| [[BR]]'''''BRIEF DESCRIPTION ::'''''Defines that a certain type of unit can move over this terrain, and the effects the terrain applies when the unit is moving over it.[[BR]][[BR]]A terrain can have multiple Passable attributes to define different behaviours for different unit types walking over it.[[BR]][[BR]][[BR]][[BR]](Note that special actors that combine multiple terrain objects (such as water and cliffs) simply use the passable attributes for those terrains. For example, the only thing stopping units from walking up the wall of a cliff is that the wall terrain is impassable to units. Equally, the appropriate surface and shore terrains determine what units and ships can walk on the different areas of a water object.)[[BR]][[BR]]A Passable attribute consists of: * '''Type:''' The category of unit(s) that can pass over this terrain (determined by the entity's '''Id.Type'''). * '''Speed:''' A percentage modifier to the unit's movement rate when moving over this terrain. 100% uses the unit's default movement rate. Higher numbers increase the unit's speed. Lower numbers decrease the unit's speed. * '''Effect:''': A list of special effects that occur when the unit is walking over this terrain. Effects include: * '''Dust:''' eg sand, dry dirt. Clouds of dust particles appear around the entity as it moves over the terrain. * '''Tracks:''' eg mud, wet dirt. Entities leave tracks on the terrain as they move. This is dependent upon the entity type. For example, foot units leave footprints, cavalry leave hoofprints, while wheeled units cut grooves into the ground. * '''Splash:''' eg shallows, mud. * '''Wakes:''' eg deep water. Ripples and wave deformations of the water mesh. QUOTEThese are the general rules for terrain movement:[[BR]] [[BR]][[BR]][[BR]][[BR]] * '''Normal (undefined)'''[[BR]]''Units'' – movement of any entity except ships.[[BR]]''Structures'' – construction of any structure except Docks.[[BR]][[BR]][[BR]][[BR]] * '''Shallows'''[[BR]]''Units'' – movement of any entity with feet ('''!UnitNonMechanical''').[[BR]]''Structures'' - only the construction of water structures that may be[[BR]]built in the shallows ('''StructWallW, StructTowerW''', '''Dock''').[[BR]][[BR]]A special note about the shallow type.  The first image shows some nuances of the shallow water. See that though the water is visually ‘shallow’ in a certain region of that picture… it isn’t ‘shallow type’ because it doesn’t have the correct shallow texture type (designated by the difference in the skin appearance).  In other words, 2 things must be in order before a[[BR]]terrain is considered shallow. It must not be too deep (elevation difference of the Z axis), and it must be the shallow terrain type.[[BR]][[BR]][[BR]][[BR]] * '''Water'''[[BR]]''Units'' – movement only by ships ('''!UnitShips''').[[BR]]''Structures'' – no structures may be built.[[BR]][[BR]][[BR]][[BR]] * '''Forest'''[[BR]]''Units'' – only units with the Boolean attribute of walking in forests may walk in Forest type.[[BR]]''Structures'' – no structures may be built.[[BR]][[BR]]A special note about the forest type.  When a tree is placed on the terrain, the tile that the tree is placed on has the terrain’s secondary texture skin changed to a forest type.  When a cluster of trees are placed in adjacent tiles it changes the terrain enough to make a ‘closed’ forest terrain which means that all eight tiles around it also have a tree on them.  When that is the case, the terrain is now of the forest type and there are special permissions applied to it.[[BR]][[BR]][[BR]][[BR]][[BR]][[BR]] * '''Cliff'''[[BR]]''Units'' – no unit may traverse.[[BR]]''Structures'' – no structure may be built.[[BR]][[BR]][[BR]] [[BR]][[BR]] ||'''Doodad'''|| [[BR]]'''''BRIEF DESCRIPTION ::'''''Doodads/goobers/decals that get randomly sprinkled over this terrain. Similar to props, except they aren't bonded to specific sockets.[[BR]][[BR]]Useful for beautifying terrain and breaking up patterns in the texture (cacti, plants, lilies, reeds).[[BR]][[BR]]Like the Passable attributes, a terrain can have multiple doodads.[[BR]][[BR]]A Doodad attribute consists of: * '''Name:''' The name of the prop or decal actor that can be placed. * '''Max:''' Determines the maximum quantity of this doodad that could placed on the terrain (a random number of doodads is chosen when terrain is placed; this is the cap on that number, 0-max). Higher numbers have a higher likelihood of getting more doodads. Example:[[BR]][[BR]]CODE[[BR]][[BR]]       [[BR]]        [[BR]]        [[BR]]       [[BR]]       [[BR]]        [[BR]]        [[BR]]        [[BR]]>