I can't really code the whole thing for you at the moment, I'll explain it instead.
Create a 2D array of UDT entries storing details of the terrain tiles.
Create a bitmap using native commands or an image using Image Kit.
Do something like the following when something changes on the map
For x = 1 to MapSize
For z = 1 to MapSize
left = TileSize * (x-1)
top = TileSize * (z-1)
` Paste Image, Paste Sprite or IK Paste Sprite
Paste Image Tile(x,z).Image, left, top
Next z
Next x
` GetImage or use image kit image and apply to the terrains.
` Texture Object Terrain, ColourMapStage, TerrainImage
` OR build the terrain with the texture or what ever you want to do
You may want to store an additional dimension to store tiles in more than one terrain object. Also,
ask the creator for any tips.