I've spent... way too long... trying to get this simple spell to work. Can someone help?
The Spell: Lay Trap
1. A hero gets the level 1 spell, casts it on a point, takes 3 seconds to cast the ability, then a tiny cage is created and also a dummy caster sorceress, both at the targeted point.
Problem 1: The sorceress has the "locust" ability but, for some reason, she's still visible. Why?!
2. Then the sorceress is suppose to cast invisibility on the cage (which is a unit, not a building or doodad).
Problem 2: Sometimes she does; sometimes she chooses not to. Why?!
3. A region that exists in the world editor is suppose to be centered at the target point of Lay Trap.
Problem 3: It never moves from its original location on the map. Why?! (I know this because the sorceress is suppose to ensnare a unit owned by player two when it enters the region and be removed from the game after that, and she will cast sometimes and will always get removed from the game when the unit enters the region where it exists on the map in the world editor.)
4. The sorceress is suppose to cast ensnare on a player two unit when it enters the region.
Problem 4: It almost never casts ensnare. Why?! (It did once.)
Here's are my triggers:
1. Lay Trap
A. Events
Unit - A unit owned by Player 1 (Red) Starts the effect of an ability
B. Conditions
(Ability being cast) Equal to Lay Trap
C. Actions
Region - Center Region 000 <gen> on (Target point of ability being cast)
Unit - Create 1 Trap (1) for Player 1 (Red) at (Target point of ability being cast) facing Default building facing degrees
Set Hunter[4] = (Last created unit)
Unit - Create 1 Dummy casterzz for Player 1 (Red) at (Target point of ability being cast) facing Default building facing degrees
Set Hunter[5] = (Last created unit)
Wait 0.01 seconds
Unit - Order Hunter[5] to Human Sorceress - Invisibility Hunter[4]
2. Enter trap
A. Events
Unit - A unit enters Region 000 <gen>
B. Conditions
(Owner of (Entering unit)) Equal to Player 2 (Blue)
C. Actions
Unit - Order Hunter[5] to Orc Raider - Ensnare (Entering unit)
Wait 0.01 seconds
Unit - Remove Hunter[4] from the game
Unit - Remove Hunter[5] from the game
The Spell: Lay Trap
1. A hero gets the level 1 spell, casts it on a point, takes 3 seconds to cast the ability, then a tiny cage is created and also a dummy caster sorceress, both at the targeted point.
Problem 1: The sorceress has the "locust" ability but, for some reason, she's still visible. Why?!
2. Then the sorceress is suppose to cast invisibility on the cage (which is a unit, not a building or doodad).
Problem 2: Sometimes she does; sometimes she chooses not to. Why?!
3. A region that exists in the world editor is suppose to be centered at the target point of Lay Trap.
Problem 3: It never moves from its original location on the map. Why?! (I know this because the sorceress is suppose to ensnare a unit owned by player two when it enters the region and be removed from the game after that, and she will cast sometimes and will always get removed from the game when the unit enters the region where it exists on the map in the world editor.)
4. The sorceress is suppose to cast ensnare on a player two unit when it enters the region.
Problem 4: It almost never casts ensnare. Why?! (It did once.)
Here's are my triggers:
1. Lay Trap
A. Events
Unit - A unit owned by Player 1 (Red) Starts the effect of an ability
B. Conditions
(Ability being cast) Equal to Lay Trap
C. Actions
Region - Center Region 000 <gen> on (Target point of ability being cast)
Unit - Create 1 Trap (1) for Player 1 (Red) at (Target point of ability being cast) facing Default building facing degrees
Set Hunter[4] = (Last created unit)
Unit - Create 1 Dummy casterzz for Player 1 (Red) at (Target point of ability being cast) facing Default building facing degrees
Set Hunter[5] = (Last created unit)
Wait 0.01 seconds
Unit - Order Hunter[5] to Human Sorceress - Invisibility Hunter[4]
2. Enter trap
A. Events
Unit - A unit enters Region 000 <gen>
B. Conditions
(Owner of (Entering unit)) Equal to Player 2 (Blue)
C. Actions
Unit - Order Hunter[5] to Orc Raider - Ensnare (Entering unit)
Wait 0.01 seconds
Unit - Remove Hunter[4] from the game
Unit - Remove Hunter[5] from the game