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.
Undeclared variable: unittype
Undeclared variable: Jumper
Cannot convert an integer to unit
Cannot convert boolean to real
Not enough arguments passed to function
Failed with 5 errors.
Ever heard of conditions? They are between event and action.
EDIT:
manstie wrote:Anyway 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:
Add an event for each object you need. You can even do it dynamically with ForGroup or loop and "Trigger - Add New Event". Don't ask how, if you can't, then do it one by one.