SpasMaster
Hosted Project: SC
- Joined
- Jan 29, 2010
- Messages
- 1,991
Hello, Hive!
I am working on a Castle Fight-based project. For those who aren't familiar:
That being said, I have a problem with one of the unit's abilities. The Druid autocasts Entangling Roots. The map already has a system [*] that restricts players from giving order to units, so they do everything on their own. The problem is that after the roots expire, the rooted unit has interrupted its attack-move orders and just stands there despite the following trigger that I'm about to show you. I believe the trigger is MUI. Here it is:
[*] When the unit is given the Stop order, it triggers the attack-move system.
Disclaimer: the attack-move system works flawlessly for all units. When they are ordered to 'Stop', they trigger the system properly. The only occasion it doesn't happen is in this case I've just described.
I am working on a Castle Fight-based project. For those who aren't familiar:
players construct buildings in their base (castle) and buildings automatically spawn units (uncontrollable by players) that move against the opponent's castle. Whoever destroys the enemy castle wins.
[*] When the unit is given the Stop order, it triggers the attack-move system.
Disclaimer: the attack-move system works flawlessly for all units. When they are ordered to 'Stop', they trigger the system properly. The only occasion it doesn't happen is in this case I've just described.
[trigger=""]Entangling Root
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Parasite (Entangling Root)
Actions
Custom script: local unit udg_Root_Target
Set Root_Target = (Target unit of ability being cast)
Set Generic_Point = (Position of (Triggering unit))
Unit - Create 1 Dummy (Generic uses) for (Owner of (Triggering unit)) at Generic_Point facing Default building facing degrees
Unit - Add Entangle to (Last created unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Target unit of ability being cast)
Wait 5.05 seconds
Unit - Order Root_Target to Stop
Custom script: set udg_Root_Target = null
[/trigger]
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Parasite (Entangling Root)
Actions
Custom script: local unit udg_Root_Target
Set Root_Target = (Target unit of ability being cast)
Set Generic_Point = (Position of (Triggering unit))
Unit - Create 1 Dummy (Generic uses) for (Owner of (Triggering unit)) at Generic_Point facing Default building facing degrees
Unit - Add Entangle to (Last created unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Target unit of ability being cast)
Wait 5.05 seconds
Unit - Order Root_Target to Stop
Custom script: set udg_Root_Target = null
[/trigger]