Hello everyone.
I'm here asking for help so I can solve a problem with my custom skill (use triggers).
As Special Effect there is no trigger to group. So I'm using Hashtable to store all the effects, and so destroy them.
But I can not communicate to the Editor that the data inside the hashtable must be loaded and destroyed. Check below what I have done to now:

I wish the Special Effect lasts only 2 seconds, after it is destroyed.
About Maledict, I abandoned. Now I'm just working on my project that I announced. Depending will be fun to play.
Edited: Accountant is not working correctly if you want to help me in that too. Then I'm going to review triggers and try to fix all.
I'm here asking for help so I can solve a problem with my custom skill (use triggers).
As Special Effect there is no trigger to group. So I'm using Hashtable to store all the effects, and so destroy them.
But I can not communicate to the Editor that the data inside the hashtable must be loaded and destroyed. Check below what I have done to now:
-
Events
-
Time - Elapsed game time is 1.00 seconds
-
-
Conditions
-
Actions
-
Visibility - Disable black mask
-
Visibility - Disable fog of war
-
Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to (Center of Taverna <gen>) over 0.00 seconds)
-
Player Group - Pick every player in (All players) and do (Player - Add 1000 to (Picked player) Current gold)
-
Set WindfuryChance = 8
-
Set WindfuryAttacks = 2
-
Hashtable - Create a hashtable
-
Set WindfuryHashtable = (Last created hashtable)
-
-
Windfury Learn
-
Events
-
Unit - A unit Learns a skill
-
-
Conditions
-
(Learned Hero Skill) Equal to Windfury Weapon
-
-
Actions
-
Set WindfuryLearned = (Learning Hero)
-
Set WindfuryChance = (WindfuryChance + 2)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Windfury Weapon for (Learning Hero)) Greater than or equal to 5
-
-
Then - Actions
-
Set WindfuryAttacks = 3
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Windfury Weapon for (Learning Hero)) Equal to 1
-
-
Then - Actions
-
Set WindfuryCouting = WindfuryAttacks
-
-
Else - Actions
-
-
-
-
Windfury Working
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Attacking unit) Equal to WindfuryLearned
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random integer number between 1 and 100) Less than or equal to WindfuryChance
-
-
Then - Actions
-
Unit - Create 1 Dummy 002 for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Default building facing degrees
-
Set Windfurydummy = (Last created unit)
-
Unit - Add a 5.00 second Generic expiration timer to Windfurydummy
-
Unit - Order Windfurydummy to Undead Necromancer - Unholy Frenzy (Attacking unit)
-
Special Effect - Create a special effect at (Position of (Attacked unit)) using Abilities\Spells\NightElf\Cyclone\CycloneTarget.mdl
-
Hashtable - Save Handle Of(Last created special effect) as (WindfuryDates + 1) of WindfuryDates in WindfuryHashtable
-
Set WindfuryCouting = (WindfuryCouting - 1)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
WindfuryCouting Less than or equal to 0
-
-
Then - Actions
-
Unit - Remove Windfury buff from (Attacking unit)
-
Set WindfuryCouting = WindfuryAttacks
-
-
Else - Actions
-
-
-
-
Events
-
Time - Every 2.00 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
Special Effect - Destroy (Load (Integer A) of WindfuryDates in WindfuryHashtable)
-
-
-

I wish the Special Effect lasts only 2 seconds, after it is destroyed.
About Maledict, I abandoned. Now I'm just working on my project that I announced. Depending will be fun to play.
Edited: Accountant is not working correctly if you want to help me in that too. Then I'm going to review triggers and try to fix all.
Last edited: