Father_Yetti
New Member
- Reaction score
- 46
I have a Nether Revenant Hero in my game. His ult is Called Nether Ambush and it is suppose to spawn 3 replicas of him that last for 10 seconds each. They have the locust ability so you can't control them and I want them to attack the same units that the casting Hero targets. If he attacks no units that's fine they can attack at will, however, I want them to attack the targets the casting Hero chooses when he does. If they could follow him this would be nice too. I wasn't sure how many commands you can give and which ones overide others.
Nether Ambush Cast:
Nether Ambush Trigger:
Nether Timmer Expires:
Nether Attack Command:
I have tried this like 5 different ways and I don't even think I am approaching it right or have gotten close. Its embarrasing I really don't quite know how to do this.
Nether Ambush Cast:
Trigger:
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Nether Ambush (Nether Revenant)
- Actions
- Set Nether_Caster = (Triggering unit)
- Countdown Timer - Start Nether_Timer as a One-shot timer that will expire in 10.00 seconds
- Set Nether_Timer = (Last started timer)
- Trigger - Turn on Nether Timmer Expires <gen>
- Trigger - Turn on Nether Attack Command <gen>
- Trigger - Turn on Nether Ambush Trigger <gen>
- Wait 10.00 seconds
- Trigger - Turn off Nether Ambush Trigger <gen>
Nether Ambush Trigger:
Trigger:
- Events
- Time - Every 6.00 seconds of game time
- Conditions
- Actions
- For each (Integer A) from 1 to 3, do (Actions)
- Loop - Actions
- Set Nether_CasterLoc = (Position of Nether_Caster)
- Set TempPoint5 = (NetherStrike_CasterLoc offset by 200.00 towards ((120.00 x (Real((Integer A))))
- Set NetherAmbush_Group = (Units within 400.00 of TempPoint5 matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) belongs to an enemy of (Owner of Nether_Caster)) Equal to True) and (((Matching unit) is alive) Equal to True))))
- Unit Group - Pick every unit in NetherAmbush_Group and do (Actions)
- Loop - Actions
- Unit - Create 1 Nether Revenant (Dummy) for (Owner of Nether_Caster) at TempPoint5 facing Default building facing degrees
- Set NetherDummy_Group = (Last created unit group)
- Hero - Set (Last created unit) Hero-level to (Level of Nether_Caster), Show level-up graphics
- Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Attack (Picked unit)
- Loop - Actions
- Special Effect - Create a special effect at TempPoint5 using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect at TempPoint5 using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_TempPoint5)
- Custom script: call RemoveLocation(udg_Nether_CasterLoc)
- Custom script: call DestroyGroup(udg_NetherAmbush_Group)
- Loop - Actions
- For each (Integer A) from 1 to 3, do (Actions)
Nether Timmer Expires:
Trigger:
- Events
- Time - Nether_Timer expires
- Conditions
- Actions
- Trigger - Turn off Nether Attack Command <gen>
- Unit Group - Pick every unit in NetherDummy_Group and do (Actions)
- Loop - Actions
- Unit - Remove (Picked unit) from the game
- Loop - Actions
Nether Attack Command:
Trigger:
- Events
- Unit - A unit Is attacked
- Conditions
- (Attacking unit) Equal to Nether_Caster
- Actions
- Set Nether_TargetUnit = (Attacked unit)
- Unit Group - Pick every unit in NetherDummy_Group and do (Actions)
- Loop - Actions
- Unit - Order (Picked unit) to Attack Nether_TargetUnit
- Loop - Actions
I have tried this like 5 different ways and I don't even think I am approaching it right or have gotten close. Its embarrasing I really don't quite know how to do this.