- Joined
- Oct 1, 2004
- Messages
- 12
Alright, the spell I'm trying to make renders the hero invulnerable like Divine Shield, but the hero cannot attack, move or cast spells while ice blocked.
I used Divine Shield as a base spell and has 2 triggers.
The first trigger basically recognizes the the hero has cast ice block and sets animation speed to 0%. It also enables the second trigger.
The second trigger is where the problem lies.
I used events...
Triggering unit is issued an order targeting a point.
Triggering unit is issued an order targeting an object.
Triggering unit is issued with no target.
Conditions...
Triggering unit is (hero).
Issued order not equal to stop.
Actions...
Order triggering unit to stop.
=============================================
Using a debug line everything is working EXCEPT for ordering the hero to stop. So basically I cast the spell, the hero becomes ice blocked as intended and stops, but if I issue an order like attack or move the hero will still do it.
And I would just use Pause/Unpause except for the fact that I want the spell to be deactivatable (which is all implemented and working fine, for the sake of simplicity I didn't include the extra trigger/lines for that part.)
Anyone know whats up?
I used Divine Shield as a base spell and has 2 triggers.
The first trigger basically recognizes the the hero has cast ice block and sets animation speed to 0%. It also enables the second trigger.
The second trigger is where the problem lies.
I used events...
Triggering unit is issued an order targeting a point.
Triggering unit is issued an order targeting an object.
Triggering unit is issued with no target.
Conditions...
Triggering unit is (hero).
Issued order not equal to stop.
Actions...
Order triggering unit to stop.
=============================================
Using a debug line everything is working EXCEPT for ordering the hero to stop. So basically I cast the spell, the hero becomes ice blocked as intended and stops, but if I issue an order like attack or move the hero will still do it.
And I would just use Pause/Unpause except for the fact that I want the spell to be deactivatable (which is all implemented and working fine, for the sake of simplicity I didn't include the extra trigger/lines for that part.)
Anyone know whats up?