zero9x
Active Member
- Reaction score
- 1
Hi guys, i got a spell like this:
When HERO has been target by a spell, creat a dummy and order dummy to use that spell to CASTER.
But this spell is so strong, then i want make it cooldown-able, can you guys help me ?
Knock Shot, Lightning Strike, Electron Shock, Lightning Storm, Storm Hammer..... are spells in my map
Help me plz
When HERO has been target by a spell, creat a dummy and order dummy to use that spell to CASTER.
But this spell is so strong, then i want make it cooldown-able, can you guys help me ?
Trigger:
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Level of SPELL for (Target unit of ability being cast)) Greater than or equal to (>=) 1
- Actions
- Set AACaster = (Casting unit)
- Set AAUnit = (Target unit of ability being cast)
- Set AALoc1 = (Position of AAUnit)
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to (==) Knock Shot
- Then - Actions
- Unit - Create 1 Craggy Exterior Dummy for (Owner of AAUnit) at AALoc1 facing Default building facing (270.0) degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Add Knock Shot to (Last created unit)
- Unit - Set level of Knock Shot for (Last created unit) to (Level of Knock Shot for AACaster)
- Unit - Order (Last created unit) to Human Mountain King - Storm Bolt AACaster
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to (==) Lightning Strike
- Then - Actions
- Unit - Create 1 Craggy Exterior Dummy for (Owner of AAUnit) at AALoc1 facing Default building facing (270.0) degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Add Lightning Strike to (Last created unit)
- Unit - Set level of Lightning Strike for (Last created unit) to (Level of Lightning Strike for AACaster)
- Unit - Order (Last created unit) to Neutral Naga Sea Witch - Forked Lightning AACaster
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to (==) Electron Shock
- Then - Actions
- Unit - Create 1 Craggy Exterior Dummy for (Owner of AAUnit) at AALoc1 facing Default building facing (270.0) degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Add Electron Shock to (Last created unit)
- Unit - Set level of Electron Shock for (Last created unit) to (Level of Electron Shock for AACaster)
- Unit - Order (Last created unit) to Neutral Fire Lord - Soul Burn AACaster
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to (==) Lightning Storm
- Then - Actions
- Unit - Create 1 Craggy Exterior Dummy for (Owner of AAUnit) at AALoc1 facing Default building facing (270.0) degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Add Lightning Storm to (Last created unit)
- Unit - Set level of Lightning Storm for (Last created unit) to (Level of Lightning Storm for AACaster)
- Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning AACaster
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to (==) Storm Hammer
- Then - Actions
- Unit - Create 1 Craggy Exterior Dummy for (Owner of AAUnit) at AALoc1 facing Default building facing (270.0) degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Add Storm Hammer to (Last created unit)
- Unit - Set level of Storm Hammer for (Last created unit) to (Level of Storm Hammer for AACaster)
- Unit - Order (Last created unit) to Human Mountain King - Storm Bolt AACaster
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to (==) Telekinetic Grasp
- Then - Actions
- Unit - Create 1 Craggy Exterior Dummy for (Owner of AAUnit) at AALoc1 facing Default building facing (270.0) degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Add Telekinetic Grasp to (Last created unit)
- Unit - Set level of Telekinetic Grasp for (Last created unit) to (Level of Telekinetic Grasp for AACaster)
- Unit - Order (Last created unit) to Human Mountain King - Storm Bolt AACaster
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to (==) Wrath of Nature
- Then - Actions
- Unit - Create 1 Craggy Exterior Dummy for (Owner of AAUnit) at AALoc1 facing Default building facing (270.0) degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Add Wrath of Nature to (Last created unit)
- Unit - Set level of Wrath of Nature for (Last created unit) to (Level of Wrath of Nature for AACaster)
- Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning AACaster
- Else - Actions
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Custom script: call RemoveLocation(udg_AALoc1)
- Set AAUnit = No unit
- Set AACaster = No unit
Knock Shot, Lightning Strike, Electron Shock, Lightning Storm, Storm Hammer..... are spells in my map
Help me plz