Darthfett
Aerospace/Cybersecurity Software Engineer
- Reaction score
- 615
Terrain Type Constants
A long time ago, Romek posted his Replace Terrain system. Shortly afterward, he posted a huge list of terrain types, with their ID's and names linked. Then, I organized them into a vJASS-ready library of constants.
How to implement into your map:
- Create a Trigger
- Go to Edit -> Convert to Custom Text
- Delete all the contents of the trigger
- Copy and paste the System Code into the trigger
How to use Terrain Type Constants:
- The variables provided are named in a consistent pattern as TILESET_TILE, such as ASHENVALE_DIRT, or DALARANRUINS_DIRT_CLIFF
System Code:
JASS:
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
//-=-=-= Terrain Type Constants by Darthfett =-=-=-=-=-
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
//-=-=-=-= Thanks to Romek for the Raw Codes -=-=-=-=-
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
scope LORDAERONSUMMER
// Lordaeron Summer
globals
public constant integer DIRT = 039;Ldrt039;
public constant integer ROUGH_DIRT = 039;Ldro039;
public constant integer GRASSY_DIRT = 039;Ldrg039;
public constant integer ROCK = 039;Lrok039;
public constant integer GRASS = 039;Lgrs039;
public constant integer DARK_GRASS = 039;Lgrd039;
public constant integer DIRT_CLIFF = 039;cLc2039;
public constant integer GRASS_CLIFF = 039;cLc1039;
endglobals
endscope
scope LORDAERONFALL
// Lordaeron Fall
globals
public constant integer DIRT = 039;Fdrt039;
public constant integer ROUGH_DIRT = 039;Fdro039;
public constant integer GRASSY_DIRT = 039;Fdrg039;
public constant integer ROCK = 039;Frok039;
public constant integer GRASS = 039;Fgrs039;
public constant integer DARK_GRASS = 039;Fgrd039;
public constant integer DIRT_CLIFF = 039;cFc2039;
public constant integer GRASS_CLIFF = 039;cFc1039;
endglobals
endscope
scope LORDAERONWINTER
// Lordaeron Winter
globals
public constant integer DIRT = 039;Wdrt039;
public constant integer ROUGH_DIRT = 039;Wdro039;
public constant integer GRASSY_SNOW = 039;Wsng039;
public constant integer ROCK = 039;Wrok039;
public constant integer GRASS = 039;Wgrs039;
public constant integer SNOW = 039;Wsnw039;
public constant integer GRASS_CLIFF = 039;cWc2039;
public constant integer SNOW_CLIFF = 039;cWc1039;
endglobals
endscope
scope BARRENS
// Barrens
globals
public constant integer DIRT = 039;Bdrt039;
public constant integer ROUGH_DIRT = 039;Bdrh039;
public constant integer PEBBLES = 039;Bdrr039;
public constant integer GRASSY_DIRT = 039;Bdrg039;
public constant integer DESERT = 039;Bdsr039;
public constant integer DARK_DESERT = 039;Bdsd039;
public constant integer ROCK = 039;Bflr039;
public constant integer GRASS = 039;Bgrr039;
public constant integer DESERT_CLIFF = 039;cBc2039;
public constant integer GRASS_CLIFF = 039;cBc1039;
endglobals
endscope
scope ASHENVALE
// Ashenvale
globals
public constant integer DIRT = 039;Adrt039;
public constant integer ROUGH_DIRT = 039;Adrd039;
public constant integer GRASS = 039;Agrs039;
public constant integer ROCK = 039;Arck039;
public constant integer LUMPY_GRASS = 039;Agrd039;
public constant integer VINES = 039;Avin039;
public constant integer GRASSY_DIRT = 039;Adrg039;
public constant integer LEAVES = 039;Alvd039;
public constant integer DIRT_CLIFF = 039;cAc2039;
public constant integer GRASS_CLIFF = 039;cAc1039;
endglobals
endscope
scope FELWOOD
// Felwood
globals
public constant integer DIRT = 039;Cdrt039;
public constant integer ROUGH_DIRT = 039;Cdrd039;
public constant integer POISON = 039;Cpos039;
public constant integer ROCK = 039;Crck039;
public constant integer VINES = 039;Cvin039;
public constant integer GRASS = 039;Cgrs039;
public constant integer LEAVES = 039;Clvg039;
public constant integer DIRT_CLIFF = 039;cCc2039;
public constant integer GRASS_CLIFF = 039;cCc1039;
endglobals
endscope
scope NORTHREND
// Northrend
globals
public constant integer DIRT = 039;Ndrt039;
public constant integer DARK_DIRT = 039;Ndrd039;
public constant integer ROCK = 039;Nrck039;
public constant integer GRASS = 039;Ngrs039;
public constant integer ICE = 039;Nice039;
public constant integer SNOW = 039;Nsnw039;
public constant integer ROCKY_SNOW = 039;Nsnr039;
public constant integer DIRT_CLIFF = 039;cNc2039;
public constant integer SNOW_CLIFF = 039;cNc1039;
endglobals
endscope
scope CITYSCAPE
// Cityscape
globals
public constant integer DIRT = 039;Ydrt039;
public constant integer ROUGH_DIRT = 039;Ydtr039;
public constant integer BLACK_MARBLE = 039;Yblm039;
public constant integer BRICK = 039;Ybtl039;
public constant integer SQUARE_TILES = 039;Ysqd039;
public constant integer ROUND_TILES = 039;Yrtl039;
public constant integer GRASS = 039;Ygsb039;
public constant integer GRASS_TRIM = 039;Yhdg039;
public constant integer WHITE_MARBLE = 039;Ywmb039;
public constant integer DIRT_CLIFF = 039;cYc2039;
public constant integer SQUARE_TILES_CLIFF = 039;cYc1039;
endglobals
endscope
scope VILLAGE
// Village
globals
public constant integer DIRT = 039;Vdrt039;
public constant integer ROUGH_DIRT = 039;Vdrr039;
public constant integer CROPS = 039;Vcrp039;
public constant integer COBBLE_PATH = 039;Vcbp039;
public constant integer STONE_PATH = 039;Vstp039;
public constant integer SHORT_GRASS = 039;Vgrs039;
public constant integer ROCKS = 039;Vrck039;
public constant integer THICK_GRASS = 039;Vgrt039;
public constant integer DIRT_CLIFF = 039;cVc2039;
public constant integer GRASS_THICK_CLIFF = 039;cVc1039;
endglobals
endscope
scope VILLAGEFALL
// Village Fall
globals
public constant integer DIRT = 039;Qdrt039;
public constant integer ROUGH_DIRT = 039;Qdrr039;
public constant integer CROPS = 039;Qcrp039;
public constant integer COBBLE_PATH = 039;Qcbp039;
public constant integer STONE_PATH = 039;Qstp039;
public constant integer SHORT_GRASS = 039;Qgrs039;
public constant integer ROCKS = 039;Qrck039;
public constant integer THICK_GRASS = 039;Qgrt039;
public constant integer DIRT_CLIFF = 039;cQc2039;
public constant integer GRASS_THICK_CLIFF = 039;cQc1039;
endglobals
endscope
scope DALARAN
// Dalaran
globals
public constant integer DIRT = 039;Xdrt039;
public constant integer ROUGH_DIRT = 039;Xdtr039;
public constant integer BLACK_MARBLE = 039;Xblm039;
public constant integer BRICK_TILES = 039;Xbtl039;
public constant integer SQUARE_TILES = 039;Xsqd039;
public constant integer ROUND_TILES = 039;Xrtl039;
public constant integer GRASS = 039;Xgsb039;
public constant integer TRIM_GRASS = 039;Xhdg039;
public constant integer WHITE_MARBLE = 039;Xwmb039;
public constant integer DIRT_CLIFF = 039;cXc2039;
public constant integer SQUARE_TILES_CLIFF = 039;cXc1039;
endglobals
endscope
scope DUNGEON
// Dungeon
globals
public constant integer DIRT = 039;Ddrt039;
public constant integer BRICK = 039;Dbrk039;
public constant integer RED_STONES = 039;Drds039;
public constant integer LAVA_CRACKS = 039;Dlvc039;
public constant integer LAVA = 039;Dlav039;
public constant integer DARK_ROCKS = 039;Ddkr039;
public constant integer GREY_STONES = 039;Dgrs039;
public constant integer SQUARE_TILES = 039;Dsqd039;
public constant integer DIRT_CLIFF = 039;cDc2039;
public constant integer SQUARE_TILES_CLIFF = 039;cDc1039;
endglobals
endscope
scope UNDERGROUND
// Underground
globals
public constant integer DIRT = 039;Gdrt039;
public constant integer BRICK = 039;Gbrk039;
public constant integer RED_STONES = 039;Grds039;
public constant integer LAVA_CRACKS = 039;Glvc039;
public constant integer LAVA = 039;Glav039;
public constant integer DARK_ROCKS = 039;Gdkr039;
public constant integer GREY_STONES = 039;Ggrs039;
public constant integer SQUARE_TILES = 039;Gsqd039;
public constant integer DIRT_CLIFF = 039;cGc2039;
public constant integer SQUARE_TILES_CLIFF = 039;cGc1039;
endglobals
endscope
scope SUNKENRUINS
// Sunken Ruins
globals
public constant integer DIRT = 039;Zdrt039;
public constant integer ROUGH_DIRT = 039;Zdtr039;
public constant integer GRASSY_DIRT = 039;Zdrg039;
public constant integer SMALL_BRICKS = 039;Zbks039;
public constant integer SAND = 039;Zsan039;
public constant integer LARGE_BRICKS = 039;Zbkl039;
public constant integer ROUND_TILES = 039;Ztil039;
public constant integer GRASS = 039;Zgrs039;
public constant integer DARK_GRASS = 039;Zvin039;
public constant integer DIRT_CLIFF = 039;cZc2039;
public constant integer LARGE_BRICKS_CLIFF = 039;cZc1039;
endglobals
endscope
scope ICECROWNGLACIER
// Icecrown Glacier
globals
public constant integer DIRT = 039;Idrt039;
public constant integer ROUGH_DIRT = 039;Idtr039;
public constant integer DARK_ICE = 039;Idki039;
public constant integer BLACK_BRICKS = 039;Ibkb039;
public constant integer RUNE_BRICKS = 039;Irbk039;
public constant integer TILED_BRICKS = 039;Itbk039;
public constant integer ICE = 039;Iice039;
public constant integer BLACK_SQUARES = 039;Ibsq039;
public constant integer SNOW = 039;Isnw039;
public constant integer RUNE_BRICKS_CLIFF = 039;cIc2039;
public constant integer SNOW_CLIFF = 039;cIc1039;
endglobals
endscope
scope OUTLAND
// Outland
globals
public constant integer DIRT = 039;Odrt039;
public constant integer LIGHT_DIRT = 039;Odtr039;
public constant integer ROUGH_DIRT = 039;Osmb039;
public constant integer CRACKED_DIRT = 039;Ofst039;
public constant integer FLAT_STONES = 039;Olgb039;
public constant integer ROCK = 039;Orok039;
public constant integer LIGHT_FLAT_STONES = 039;Ofsl039;
public constant integer ABYSS = 039;Oaby039;
public constant integer ABYSS_CLIFF = 039;cOc1039;
public constant integer ROUGH_DIRT_CLIFF = 039;cOc2039;
endglobals
endscope
scope BLACKCITADEL
// Black Citadel
globals
public constant integer DIRT = 039;Kdrt039;
public constant integer LIGHT_DIRT = 039;Kfsl039;
public constant integer ROUGH_DIRT = 039;Kdtr039;
public constant integer FLAT_STONES = 039;Kfst039;
public constant integer SMALL_BRICKS = 039;Ksmb039;
public constant integer LARGE_BRICKS = 039;Klgb039;
public constant integer SQUARE_TILES = 039;Ksqt039;
public constant integer DARK_TILES = 039;Kdkt039;
public constant integer DIRT_CLIFF = 039;cKc1039;
public constant integer DARK_TILES_CLIFF = 039;cKc2039;
endglobals
endscope
scope DALARANRUINS
// Dalaran Ruins
globals
public constant integer DIRT = 039;Jdrt039;
public constant integer ROUGH_DIRT = 039;Jdtr039;
public constant integer BLACK_MARBLE = 039;Jblm039;
public constant integer BRICK_TILES = 039;Jbtl039;
public constant integer SQUARE_TILES = 039;Jsqd039;
public constant integer ROUND_TILES = 039;Jrtl039;
public constant integer GRASS = 039;Jgsb039;
public constant integer TRIM_GRASS = 039;Jhdg039;
public constant integer WHITE_MARBLE = 039;Jwmb039;
public constant integer DIRT_CLIFF = 039;cJc2039;
public constant integer SQUARE_TILES_CLIFF = 039;cJc1039;
endglobals
endscope