I'm trying to make a healing spell. What it basically does is that it creates a ward at the target point, a ward which i have given healing wave. Afterwards I want the ward to periodically use healing wave in an area around it. Unfortunatly I can't seem to figure this out.
Here I have attempted to create the ward on the target point which worked perfectly. I don't know if adding the ward to EnchantedWardGroup2 (a unit-group variable) works though.
Here I tryed to make the ward cast healing wave periodically on allied units but it won't work
______
My second trigger is an auto-cast spell. It creates serpent wards when activated and it works. I was just wondering how you create the wards at the place where my hero is attacking.
Trigger:
- Enchanted Ward Cast
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Enchanted Ward
- Actions
- Set L = (Position of (Triggering unit))
- Unit - Create 1 Enchanted Ward for (Owner of (Triggering unit)) at (Target point of ability being cast) facing Default building facing degrees
- Set EnchantedWard = (Last created unit)
- Unit Group - Add (Last created unit) to EnchantedWardGroup2
- Unit - Add a 60.00 second Generic expiration timer to (Last created unit)
- Events
Here I have attempted to create the ward on the target point which worked perfectly. I don't know if adding the ward to EnchantedWardGroup2 (a unit-group variable) works though.
Trigger:
- Enchanted Ward Activate
- Events
- Time - Every 7.00 seconds of game time
- Conditions
- Actions
- Set L_Copy = (Position of (Last created unit))
- Set EnchantedWardGroup = (Units within 700.00 of (Position of EnchantedWard) matching (((Matching unit) belongs to an enemy of (Owner of (Matching unit))) Equal to True))
- Unit Group - Pick every unit in EnchantedWardGroup2 and do (Actions)
- Loop - Actions
- Unit - Order (Picked unit) to Orc Shadow Hunter - Healing Wave (Random unit from EnchantedWardGroup)
- Loop - Actions
- Events
Here I tryed to make the ward cast healing wave periodically on allied units but it won't work
______
My second trigger is an auto-cast spell. It creates serpent wards when activated and it works. I was just wondering how you create the wards at the place where my hero is attacking.
Trigger:
- Serpentine Ward Activate
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Serpentine Ward
- Actions
- Set Ablitylevel = (Level of Serpentine Ward for (Triggering unit))
- Set L = (Position of (Triggering unit))
- Unit - Create 1 DummyUnit for (Owner of (Triggering unit)) at L facing (Facing of (Triggering unit)) degrees
- Unit - Add Serpentine Ward to (Last created unit)
- Unit - Set level of Serpentine Ward for (Last created unit) to Ablitylevel
- Unit - Order (Last created unit) to Orc Shadow Hunter - Serpent Ward L
- Events