Terrains
In Max Escape Creation different terrains are chosen for one's map. Each one will have a precise appearance which we will call "terrain type", and some other characteristics.<br/>The three big kinds of terrain defined in MEC are the following : walk, slide and death.<br/><ul><li>The "walk" terrains are those on which we can walk (run), with a speed depending on the terrain.</li><li>The "slide" terrains are those on which we slide, with a speed depending on the terrain.</li><li>The "death" terrains are those on which we die, with a death delay and a special effect depending on the terrain.</li></ul><br/>The commands detailled below allows creating, defining and modifying the different terrains which will be used in the map.
-
-getTerrainInfo (gti) [‹terrainType› | ‹lowInteger› ‹upInteger›]Displays information about terrain types.
Information displayed : french name, id as an integer between 1 and 177 (the 98 first terrain types are compatible to ROC, the next ones are only TFT), id as an ascii code with 4 letters (example : 'Nice', with simple quotes), and, in the case the terrain type is used for a terrain, name and alias of the terrain with the color : green for walk, teal for slide and orange for death.
If you don't put any parameter in the command, you enter the getTerrainInfo mode, in which your right clicks on the terrain will display information about the corresponding terrain types. Use stop command to end this mode.
In the case you put the parameter ‹terrainType› (with an id as integer or an id as ascii code), you will get information of the specified terrain type.
However, if you use the two parameters ‹lowInteger› ‹upInteger›, you will get information of all the terrain types between the lowInteger and the upInteger. Carefull, only information of 16 terrain types can be displayed with one command.Examples-getTerrainInfo
-gti 1 15
-gti 46
-gti 'Nice' -
-newWalk (neww) ‹label› ‹terrainType› [‹walkSpeed›]Creates a new walk terrain.
- You give to the terrain a label of your choice. The label allows you to specify your terrain to use other commands allowing to modify or remove the terrain.
- You specify the terrain type, which will define the skin of your terrain. Read getTerrainInfo documentation to know how to specify a terrain type.
- You can specify the walk speed of your terrain (a real between 0 and 522). If you don't, the walk speed will automatically be set to 522.
Examples-newWalk walk1 1
-neww walk1 'Ldrt' 400 -
-newSlide (news) ‹label› ‹terrainType› [‹slideSpeed›]Creates a new slide terrain.
- You give to the terrain a label of your choice. The label allows you to specify your terrain to use other commands allowing to modify or remove the terrain.
- You specify the terrain type, which will define the skin of your terrain. Read getTerrainInfo documentation to know how to specify a terrain type.
- You can specify the slide speed of your terrain (a real positive or negative, without limit). If you don't, the slide speed will automatically be set to 550.
Examples-newSlide normalSlide 'Nice'
-newss slowSlide 'Nsnw' 300
-news reverseSlide 58 -550 -
-newDeath (newd) ‹label› ‹terrainType› [‹killingEffect› [‹terrainTimeToKill›]]Creates a new death terrain.
- You give to the terrain a label of your choice. The label allows you to specify your terrain to use other commands allowing to modify or remove the terrain.
- You specify the terrain type, which will define the skin of your terrain. Read getTerrainInfo documentation to know how to specify a terrain type.
- You can give a special effect to the death terrain (the effect will display on the hero when this one dies onto the death terrain). It must be a model (.mdl) existing in Warcraft III or in the map (by importing the model). You have to put the absolute path of the model. You can get it by searching in the object editor (F6) in the JNGP. By default, there is no killing effect for death terrains.
- You can specify a delay (a real upper than 0 or equals 0) for the terrain to kill heroes (terrainTimeToKill). The default delay value is 2 (seconds).
Examples-newDeath death 18
-newd death 18 Abilities\Spells\NightElf\EntanglingRoots\EntanglingRootsTarget.mdl -
-setTerrainLabel (settl) ‹oldTerrainLabel› ‹newTerrainLabel›Changes the label of a terrain. All terrain labels and alias must be different.Examples-setTerrainLabel slide normalSlide
-settl deaath death -
-setTerrainAlias (setta) ‹terrainLabel› ‹alias›Puts an alias or changes the alias of a terrain. An alias is a short name which can be used like a label.Examples-setTerrainAlias slide s
-setta death d -
-setTerrainWalkSpeed (settws) ‹walkTerrainLabel› ‹walkSpeed›Changes the walk speed of a terrain. Works of course only with walk terrains. Maximum walk speed : 522.Examples-setTerrainWalkSpeed walk 400
-settws slowWalk 250 -
-setTerrainSlideSpeed (settss) ‹slideTerrainLabel› ‹slideSpeed›Changes the slide speed of a slide terrain. It's a real positive or negative, without limit. The default slide speed of slide terrains is 550.Examples-setTerrainSlideSpeed fastSlide 1000
-settss fs 1000 -
-setTerrainKillEffect (settke) ‹deathTerrainLabel› ‹killingEffect›Puts a special effect to a death terrain or change it. It must be a model (.mdl) existing in Warcraft III or in the map (by importing the model). You have to put the absolute path of the model. You can get it by searching in the object editor (F6) in the JNGP. The effect appears each time a hero touches the death terrain.Examples-settke d Abilities\Spells\NightElf\EntanglingRoots\EntanglingRootsTarget.mdl
-
-setTerrainKillDelay (settkd) ‹deathTerrainLabel› ‹killingDelay›Specifies the time before which the hero dies when he touches the death terrain. It must be a real upper than 0 or equals 0. The default delay value is 2 (seconds).Examples-setTerrainKillDelay death 0
-settkd d 1 -
-setTerrainKillTolerance (settkt) ‹deathTerrainLabel› ‹toleranceDist›Gives to a death terrain a tolerance distance, allowing it to kill heroes less. The normality is "when a hero touch the terrain, he dies". With the tolerance he could touch it a bit without diying. The default value is 0 (no tolerance) and the maximum value is 100 for version 1.2d of MEC, 50 for version 1.3 of MEC. The smallest square of terrain possible has a width and a height of 128.Examples-setTerrainKillTolerance death 30
-settkt d 0 -
-displayTerrains (dt) [‹terrainLabel›]Displays the characteristics of the terrains added by the player(s). Without parameter, displays the characteristics of all terrains. With the parameter ‹terrainLabel›, displays the characteristics of the specified terrain. The terrains are displayed with the colors : green for walk, teal for slide and orange for death. For the three kinds of terrains the information displayed begin with : label, alias, " : ", terrain type, cliff type. Below are the information displayed for every kind of terrains :
- Walk : walk speed, cliff type.
- Slide : slide speed, cliff type.
- Death : kill delay, special effect on death, tolerance distance, cliff type.
Examples-displayTerrains
-dt fastSlide -
-usedTerrains (ut)Displays the terrain types already used (onto the map) during this game. Only 16 terrain types at maximum can be used in a same game : this is a Warcraft III limitation. By "used terrain type" I mean any terrain type being visible on the map at any moment of the game. If a terrain type was appearing on the map at a moment, and later is nowhere, it is still considered as a used terrain type. If you want to use other terrain type(s), you have no other choice than creating a new game (this doesn't prevent you to save your ingame modifications).Examples-usedTerrains
-ut -
-changeTerrain (cht) ‹terrainLabel› ‹newTerrainType›Changes the terrain type (appearance) of a terrain. You can specify a terrain type with its integer id, between 1 and 177 (the 98 first terrain types are compatible to ROC, the next ones are only TFT), or with its ascii id (example : 'Nice', with simple quotes).Examples-changeTerrain slide 46
-cht s 'Nice' -
-changeAllTerrains (chat) [known(k)|notKnown(nk)]Changes the terrain type (appearance) of each terrain. It does not change the terrain type of terrains not added, which have no label and no category (walk, slide or death). Without parameter it just takes terrain types randomly. With the parameter known(k), it takes only terrain types previously used in the game (command usedTerrains to know them). With the parameter notKnown(nk), it takes only (if possible) terrain types not previously used in the game. Warning, only 16 different terrain types can be used in a same game.Examples-changeAllTerrains
-chat known
-chat nk -
-changeAllTerrainsAtRevive (chatar) ‹boolean change›Enables or disables changing all terrains at revive. It works exactly like if an admin types the "-chat" command at every revive : when someone reaches the next level, when the team loses a life, or when the game restarts (when losing).Examples-changeAllTerrainsAtRevive true
-chatar off -
-exchangeTerrains (excht) [‹terrainLabelA› ‹terrainLabelB›]Exchanges the terrain types of two terrains. Without parameter, click on the two terrains you want to exchange the types. You can repeat the action any times you want. Type the stop command when you want to leave this mode. With the parameters ‹terrainLabelA› ‹terrainLabelB›, the terrain types of the specified terrains will be exchanged.Examples-exchangeTerrains
-excht slide walk -
-randomizeTerrains (rdmt)Randomizes the terrain types of all terrains.Examples-randomizeTerrains
-rdmt -
-reinitTerrains (rit)Resets the terrain types of the terrains like they were at the beginning of the game (like if using some changeTerrain commands). For that to work properly, the terrains need to be the same as the beginning.
THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.Examples-reinitTerrains
-rit -
-removeTerrain (remt) ‹terrainLabel›Removes the specified terrain. The consequences for the game are that the properties of the corresponding terrain type are removed. For example if it's a slide terrain which is removed, the corresponding terrain type won't make heroes slide anymore.
THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.Examples-removeTerrain slide
-remt s -
-setTerrainsOrder (setto) ‹terrainLabels›Defines the terrains order, the downest to the uppest. Concretely it changes the appearance of the whole terrain at the limits between the terrain types. At a limit between two terrain types, one looks being above the other one, and it is defined by the terrains order. In the command, a terrain specified after an other one will look above this one. All terrains must be specified, and only once, for the command to work. Warning, the appearance of the terrain will change only after an ingame modifications save.
THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.Examples-setTerrainsOrder fastSlide slide walk death
-setto fs s w d