Manipulate Terrain Tag

Hi guys 

I wanted to createa vehicle manager who works with Terrains tags (and obviously  works with the default way too) 

but I don't know how works the terrain tags How I could tweak them for when obtain a certain tags it's will do a things? or a another? 

in simple I want to works with tags for create special vehicles likes a trains who will only run move on a certain specific tiles (the one flagged with the specific terrain 

I am thankfull for any answer c:
$game_map.terrain_tag(x,y) will give you the terrain tag of a certain tile.  You don't need to write something yourself.

Your description doesn't sound like you want to manipulate terrain tags, just read them.
yeah sorry I made a bad description but yeah I want to when the object is on a certain tags it's do a certain things thanks shaz 🙂

Original thread: https://forums.rpgmakerweb.com/threads/manipulate-terrain-tag.45089/