- Joined
- Oct 25, 2009
- Messages
- 995
I follow defskull to make the Strygwyr's Thirst,but the buff doesn't remove when the hero was dead,how do i fix it?
P/S:i set the Unit within Range to 16000 of Position of the LearnerLoc.And i change the name of the ability,here is the trigger:

P/S:The buff level always is 1,i have set the Thrist to 4 level,all buff is same
P/S:i set the Unit within Range to 16000 of Position of the LearnerLoc.And i change the name of the ability,here is the trigger:
-
Events
-
Unit - A unit Learns a skill
-
-
Conditions
-
(Learned Hero Skill) Equal to Wythim's Thrist
-
-
Actions
-
Set Learner = (Triggering unit)
-
Trigger - Turn on WT Check <gen>
-
-
WT Check
-
Events
-
Time - Every 3.00 seconds of game time
-
-
Conditions
-
Actions
-
Set LearnerLoc = (Position of Learner)
-
Set AOE = (Units within 4000.00 of LearnerLoc matching ((((Matching unit) is dead) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of Learner)) Equal to True) and (((Matching unit) is A Hero) Equal to True))))
-
Unit Group - Pick every unit in AOE and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Percentage mana of (Picked unit)) Less than or equal to 15.00
-
-
Then - Actions
-
Unit - Create 1 Dummy(Can be use in another spell) for (Owner of Learner) at LearnerLoc facing Default building facing degrees
-
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
-
Unit - Add Thrist to (Last created unit)
-
Unit - Set level of Thrist for Learner to (Level of Wythim's Thrist for Learner)
-
Unit - Order (Last created unit) to Orc Shaman - Bloodlust Learner
-
Unit - Grant shared vision of (Picked unit) to (Owner of Learner)
-
-
Else - Actions
-
Unit - Remove Wythim's Thirst buff from Learner
-
Unit - Deny shared vision of (Picked unit) to (Owner of Learner)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Wythim's Thrist for Learner) Greater than 1
-
-
Then - Actions
-
Trigger - Turn on WT Check 2 <gen>
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
-
-
-
Custom script: call DestroyGroup(udg_AOE)
-
Custom script: call RemoveLocation(udg_LearnerLoc)
-
-
WT Check 2
-
Events
-
Time - Every 3.00 seconds of game time
-
-
Conditions
-
Actions
-
Set LearnerLoc = (Position of Learner)
-
Set AOE = (Units within 8000.00 of LearnerLoc matching ((((Matching unit) is dead) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of Learner)) Equal to True) and (((Matching unit) is A Hero) Equal to True))))
-
Unit Group - Pick every unit in AOE and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Percentage mana of (Picked unit)) Less than or equal to 30.00
-
-
Then - Actions
-
Unit - Create 1 Dummy(Can be use in another spell) for (Owner of Learner) at LearnerLoc facing Default building facing degrees
-
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
-
Unit - Add Thrist to (Last created unit)
-
Unit - Set level of Thrist for Learner to (Level of Wythim's Thrist for Learner)
-
Unit - Order (Last created unit) to Orc Shaman - Bloodlust Learner
-
Unit - Grant shared vision of (Picked unit) to (Owner of Learner)
-
-
Else - Actions
-
Unit - Remove Wythim's Thirst buff from Learner
-
Unit - Deny shared vision of (Picked unit) to (Owner of Learner)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Wythim's Thrist for Learner) Greater than 2
-
-
Then - Actions
-
Trigger - Turn on WT Check 3 <gen>
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
-
-
-
Custom script: call DestroyGroup(udg_AOE)
-
Custom script: call RemoveLocation(udg_LearnerLoc)
-
-
WT Check 3
-
Events
-
Time - Every 3.00 seconds of game time
-
-
Conditions
-
Actions
-
Set LearnerLoc = (Position of Learner)
-
Set AOE = (Units within 12000.00 of LearnerLoc matching ((((Matching unit) is dead) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of Learner)) Equal to True) and (((Matching unit) is A Hero) Equal to True))))
-
Unit Group - Pick every unit in AOE and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Percentage mana of (Picked unit)) Less than or equal to 45.00
-
-
Then - Actions
-
Unit - Create 1 Dummy(Can be use in another spell) for (Owner of Learner) at LearnerLoc facing Default building facing degrees
-
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
-
Unit - Add Thrist to (Last created unit)
-
Unit - Set level of Thrist for Learner to (Level of Wythim's Thrist for Learner)
-
Unit - Order (Last created unit) to Orc Shaman - Bloodlust Learner
-
Unit - Grant shared vision of (Picked unit) to (Owner of Learner)
-
-
Else - Actions
-
Unit - Remove Wythim's Thirst buff from Learner
-
Unit - Deny shared vision of (Picked unit) to (Owner of Learner)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Wythim's Thrist for Learner) Greater than 3
-
-
Then - Actions
-
Trigger - Turn on WT Check 4 <gen>
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
-
-
-
Custom script: call DestroyGroup(udg_AOE)
-
Custom script: call RemoveLocation(udg_LearnerLoc)
-
-
WT Check 5
-
Events
-
Time - Every 3.00 seconds of game time
-
-
Conditions
-
Actions
-
Set LearnerLoc = (Position of Learner)
-
Set AOE = (Units within 16000.00 of LearnerLoc matching ((((Matching unit) is dead) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of Learner)) Equal to True) and (((Matching unit) is A Hero) Equal to True))))
-
Unit Group - Pick every unit in AOE and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Percentage mana of (Picked unit)) Less than or equal to 60.00
-
-
Then - Actions
-
Unit - Create 1 Dummy(Can be use in another spell) for (Owner of Learner) at LearnerLoc facing Default building facing degrees
-
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
-
Unit - Add Thrist to (Last created unit)
-
Unit - Set level of Thrist for Learner to (Level of Wythim's Thrist for Learner)
-
Unit - Order (Last created unit) to Orc Shaman - Bloodlust Learner
-
Unit - Grant shared vision of (Picked unit) to (Owner of Learner)
-
-
Else - Actions
-
Unit - Remove Wythim's Thirst buff from Learner
-
Unit - Deny shared vision of (Picked unit) to (Owner of Learner)
-
-
-
-
-
Custom script: call DestroyGroup(udg_AOE)
-
Custom script: call RemoveLocation(udg_LearnerLoc)
-

P/S:The buff level always is 1,i have set the Thrist to 4 level,all buff is same