Okay, I tried to search but didn't quite find something to fit exactly my conditions.
So I used to map like hardcore on WarCraft III many years ago.. Now I decided to try mapping for SC2 and recreate an escape type map which I made for WC3.
Now, for WC3 I created pretty good trigger imho. Remember those "Escape from XXXX -city" maps? They had these paths and if you wondered off you'd die. They were typically done with loads of regions and I found it a bad way to do it.
So I created this trigger which checked every 0.1 secs or so, where the spesific unit was standing on the map. If on the wrong terraintype, it would die.
Can this be achieced in Starcraft II? I didn't find it but however I am still quite unfamiliar with this new editor. Also, the textures are a bit of mix of each other, but if I set the brush at 100% and create clear paths, you think it would work?
The trigger in principal goes somewhat like this:
Every 0,1 seconds of game time
Pick every unit (unit type).
And here comes the terrain part. However I didnt find the matching condition.
Kill picked unit matching condition
E: And by "wrong terrain" I mean a spesific terrain type, like Bel'Shir Grass or something. So the trigger would check IF the selected unit is standing on that forbidden type of terrain.