- Joined
- Aug 3, 2005
- Messages
- 745
Ok I have 2 spells that I need to update
First one
Decree of Silence
Targets 1 specific unit. When cast on a unit it acquires spheres that spin around it. Each time that unit tries to cast a spell it is countered and a sphere is removed. Number of spheres it acquires is dependant on level of spell.
heres the triggers
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Decree of Silence
DecreeofSilencelevel Equal to 1
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) is A Hero) Equal to True
Then - Actions
Set deecredsilenceunit = (Target unit of ability being cast)
Special Effect - Create a special effect attached to the chest of deecredsilenceunit using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
Set decreesilencesphere[1] = (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect attached to the chest of deecredsilenceunit using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
Set decreesilencesphere[2] = (Last created special effect)
Set decreesilencenum = 2
Else - Actions
Set deecredsilenceunit = (Target unit of ability being cast)
Special Effect - Create a special effect attached to the chest of deecredsilenceunit using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
Set decreesilencesphere[1] = (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect attached to the chest of deecredsilenceunit using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
Set decreesilencesphere[2] = (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect attached to the chest of deecredsilenceunit using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
Set decreesilencesphere[3] = (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect attached to the chest of deecredsilenceunit using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
Set decreesilencesphere[4] = (Last created special effect)
Wait 0.20 seconds
Set decreesilencenum = 4
Part2
Events
Unit - A unit Starts the effect of an ability
Conditions
And - All (Conditions) are true
Conditions
(Casting unit) Equal to deecredsilenceunit
decreesilencenum Greater than 0
Actions
Advanced - Stop all received spell orders for deecredsilenceunit
Special Effect - Destroy decreesilencesphere[decreesilencenum]
Set decreesilencenum = (decreesilencenum - 1)
Part3
Events
Unit - A unit Spawns a summoned unit
Conditions
And - All (Conditions) are true
Conditions
(Summoning unit) Equal to deecredsilenceunit
decreesilencenum Greater than 0
Actions
Unit - Kill (Summoned unit)
Works fine just not on thunderclap/stomp spells.
How can I make it be able to be cast on more than 1 unit at a time without it screwing up?
Next spell
Distorting Wake
Area effect template, picks all enemy units under the teomplate and teleports them back to their base.
It works fine, but I wanted to add lots of levels to it. Is there a way for me to base it of an ability, so that I can detect all units targeted.
Would Silence be an appropiate dummy spell?
This way I can make the spell stronger by simply giving the ability lots of levels and increasing template radius rather than making more and more triggers for each level.
thx
First one
Decree of Silence
Targets 1 specific unit. When cast on a unit it acquires spheres that spin around it. Each time that unit tries to cast a spell it is countered and a sphere is removed. Number of spheres it acquires is dependant on level of spell.
heres the triggers
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Decree of Silence
DecreeofSilencelevel Equal to 1
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) is A Hero) Equal to True
Then - Actions
Set deecredsilenceunit = (Target unit of ability being cast)
Special Effect - Create a special effect attached to the chest of deecredsilenceunit using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
Set decreesilencesphere[1] = (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect attached to the chest of deecredsilenceunit using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
Set decreesilencesphere[2] = (Last created special effect)
Set decreesilencenum = 2
Else - Actions
Set deecredsilenceunit = (Target unit of ability being cast)
Special Effect - Create a special effect attached to the chest of deecredsilenceunit using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
Set decreesilencesphere[1] = (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect attached to the chest of deecredsilenceunit using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
Set decreesilencesphere[2] = (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect attached to the chest of deecredsilenceunit using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
Set decreesilencesphere[3] = (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect attached to the chest of deecredsilenceunit using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
Set decreesilencesphere[4] = (Last created special effect)
Wait 0.20 seconds
Set decreesilencenum = 4
Part2
Events
Unit - A unit Starts the effect of an ability
Conditions
And - All (Conditions) are true
Conditions
(Casting unit) Equal to deecredsilenceunit
decreesilencenum Greater than 0
Actions
Advanced - Stop all received spell orders for deecredsilenceunit
Special Effect - Destroy decreesilencesphere[decreesilencenum]
Set decreesilencenum = (decreesilencenum - 1)
Part3
Events
Unit - A unit Spawns a summoned unit
Conditions
And - All (Conditions) are true
Conditions
(Summoning unit) Equal to deecredsilenceunit
decreesilencenum Greater than 0
Actions
Unit - Kill (Summoned unit)
Works fine just not on thunderclap/stomp spells.
How can I make it be able to be cast on more than 1 unit at a time without it screwing up?
Next spell
Distorting Wake
Area effect template, picks all enemy units under the teomplate and teleports them back to their base.
It works fine, but I wanted to add lots of levels to it. Is there a way for me to base it of an ability, so that I can detect all units targeted.
Would Silence be an appropiate dummy spell?
This way I can make the spell stronger by simply giving the ability lots of levels and increasing template radius rather than making more and more triggers for each level.
thx