The perfect one step solution for creating Ice/Sliding Mazes in both Reign of Chaos and The Frozen Throne. It is the only decent system around and it even works in RoC, is lagfree, perfectly optimized, fast and reliable. The included TerrainKill feature frees you from the tedious task of creating a thousand kill-regions.

manstieAnyway in your system I do syntax checks and it says undeclared variable everywhere.

You are doing it wrong. My system has zero syntax errors, otherwise it would not work. JASS is not forgiving. If you leave so much as one syntax error in it, it will refuse to run until you fix it completely.

You shouldn't run syntax checks on my code. I have already made sure it works. The missing variables are declared in the trigger editor, and you forgot to feed that to your syntax checker. Practice a lot and you'll understand it soon enough.

EDIT2: If you really want to syntax check something that works fine already, here is the part you missed: