Yeah, the Topic says everything, i need help to make a Spell called "Caging", if you cast that Spell on a Unit, its getting caged by the doodad "Magical Pen", which should be Invulnerable and he isnt allowed to cast spells or attack nearby enemies. It also cant be countered. It should have 3 levels if u need to know that.
make a dummy spell and use triggers to get the special effect on the unit. kinda that:
EVENT:
unit-a unit begins casting an ability <Cage>
ACTIONS:
create a doodad at (target point of ability being cast)
unit-pause target-unit of ability being cast
-if level of <Cage> equal to 1
-then wait 5 sec
unpause target-unit of ability being cast
destroy last created doodad
-else
-if level of <Cage> equal to 2
-then wait 10 sec
unpause target-unit of ability being cast
destroy last created doodad
-else
-if level of <Cage> equal to 3
-then wait 15 sec
unpause target-unit of ability being cast
destroy last created doodad
-else
i think that should work. if not or if you arent skilled in triggers, you can pm me (auch in deutsch) and give me a detailed description especially what models for effects etc... you want to use, and i will make it for you within next days.
The Caged Unit is NOT invulnerable, only the doodad, the doodad "Magical Pen" in is Dalaran under Destructible ( Deutsch: Magischer Pferch - Dalaran - Zerstörbare Objekte )
(sry konnte das doodad "magischer Pferch" nicht benutzen... immer wenn ich versucht hab, mit Effect oder platzieren um das Ziel zu legen, hat der den Pferch einfach immer in die Mitte der Mappe gesetzt. Habs noch lange Versucht, aber hat nicht geklappt...
naja, habs trotzdem mal mit einem anderen Effect gemacht, vielleicht geht der ja auch . Sonst must du vielleicht mal in die JASS section gehen und da was posten...)
-if level of <Cage> equal to 1
-then wait 5 sec
unpause target-unit of ability being cast
destroy last created doodad
-else
-if level of <Cage> equal to 2
-then wait 10 sec
unpause target-unit of ability being cast
destroy last created doodad
-else
-if level of <Cage> equal to 3
-then wait 15 sec
unpause target-unit of ability being cast
destroy last created doodad
-else
can be turned to
wait 5*(level of <Cage>) sec
unpause target-unit of ability being cast
destroy last created doodad