| 1 | XML: Cliff |
| 2 | |
| 3 | A cliff is a special kind of object that distorts the land mesh into a certain raised shape, and paints texture objects onto various parts of the cliff area. |
| 4 | |
| 5 | |
| 6 | |
| 7 | Icon |
| 8 | |
| 9 | BRIEF DESCRIPTION ::The sprite name of the icon to display for this cliff. |
| 10 | |
| 11 | Top |
| 12 | |
| 13 | BRIEF DESCRIPTION ::Paints the surface (the area above the wall) of the cliff with this terrain object. Passability info determines whether units can walk over the top of the cliff. |
| 14 | |
| 15 | Side |
| 16 | |
| 17 | BRIEF DESCRIPTION ::Paints the wall (the typically impassable side) of the cliff with this terrain object. Passability info determines whether units can walk up the side of the cliff. |
| 18 | |
| 19 | Edge |
| 20 | |
| 21 | BRIEF DESCRIPTION ::Paints the base (the bottom that touches the land's original terrain) of the cliff with this terrain object. |
| 22 | |
| 23 | Height |
| 24 | |
| 25 | BRIEF DESCRIPTION ::How tall the cliff is. Similar to water depth. The higher the number, the greater the terrain is raised when the cliff is placed. |
| 26 | |
| 27 | Style |
| 28 | |
| 29 | BRIEF DESCRIPTION ::The shape of the cliff. |
| 30 | |
| 31 | Determines the style in which the cliff area is distorted. Examples include "mesa" (shallow sides, flat top), "plateau" (similar to "mesa", but covering a wider area), "hill" (rounded top) and "mountain" (craggy). |
| 32 | |
| 33 | Not sure how we're going to define these. Presumably this points to a style file which defines the x/y/z nodes of the cliff mesh. AoM just hardcoded its cliff shapes, so we're not sure. |
| 34 | |
| 35 | Smoothness |
| 36 | |
| 37 | BRIEF DESCRIPTION ::The number of land tiles off the cliff edge to smooth when the cliff is placed (creates a more gradual incline from the surrounding terrain). |
| 38 | |
| 39 | Example: |
| 40 | |
| 41 | CODE |
| 42 | |
| 43 | <cliff Tag="Greek Cliff" Parent="Cliff" |
| 44 | icon="GCliff64" |
| 45 | top="grassdirt25" |
| 46 | side="CliffGreekA" |
| 47 | edge="grassdirt50" |
| 48 | height="2.0" |
| 49 | style="hill" |
| 50 | smoothness="" |
| 51 | ></cliff> |