Yet again I call for trigger help. The following is the tooltip of the spell I'm making.
... and here is the trigger for it:
Medallion of Disturbance
The medallion, given to Frine by his father, has the ability to break any spell near the medallion's wearer. Studying this medallion might reveal more powers. Level 1 - Silences nearby enemy units. Level 2 - Silences nearby enemy units and decreases nearby enemy units' armor. Level 3 - Silences nearby enemy units, decreases nearby enemy units' armor and heals the wearer.
-
MoD 1
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Medallion of Disturbance
-
Actions
- Set MoD_Caster = (Casting unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Medallion of Disturbance for MoD_Caster) Equal to 1
-
Then - Actions
- Set MoD_Area = (Position of MoD_Caster)
- Unit - Create 1 DUMMY for Player 6 (Orange) at MoD_Area facing Default building facing degrees
- Set DUMMY = (Last created unit)
- Unit - Add a 2.00 second Generic expiration timer to DUMMY
- Unit - Add Silence (Dummy) to DUMMY
- Unit - Order DUMMY to Neutral Dark Ranger - Silence MoD_Area
- Custom script: call RemoveLocation(udg_MoD_Area)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Medallion of Disturbance for MoD_Caster) Equal to 2
-
Then - Actions
- Set MoD_Area = (Position of MoD_Caster)
- Unit - Create 1 DUMMY for Player 6 (Orange) at MoD_Area facing Default building facing degrees
- Set DUMMY = (Last created unit)
- Unit - Add a 2.00 second Generic expiration timer to DUMMY
- Unit - Add Silence (Dummy) to DUMMY
- Unit - Add Howl of Terror (Dummy) to DUMMY
- Unit - Order DUMMY to Neutral Dark Ranger - Silence MoD_Area
- Unit - Order DUMMY to Neutral Pit Lord - Howl Of Terror
- Custom script: call RemoveLocation(udg_MoD_Area)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Medallion of Disturbance for MoD_Caster) Equal to 3
-
Then - Actions
- Set MoD_Area = (Position of MoD_Caster)
- Unit - Create 1 DUMMY for Player 6 (Orange) at MoD_Area facing Default building facing degrees
- Set DUMMY = (Last created unit)
- Unit - Add a 2.00 second Generic expiration timer to DUMMY
- Unit - Add Silence (Dummy) to DUMMY
- Unit - Add Howl of Terror (Dummy) to DUMMY
- Unit - Add Heal (Dummy) to DUMMY
- Unit - Order DUMMY to Neutral Dark Ranger - Silence MoD_Area
- Unit - Order DUMMY to Human Priest - Heal MoD_Caster
- Unit - Order DUMMY to Neutral Pit Lord - Howl Of Terror
- Custom script: call RemoveLocation(udg_MoD_Area)
- Else - Actions
-
If - Conditions
-
Events
Last edited: