- Joined
- Dec 3, 2020
- Messages
- 970
@Uncle I need you :'(
So for 1 of the maps I'm doing there are 30 villagers, after each one is captured I add him to VillagerArray[VillagerCount] (unit group array and integer) and then attach a special effect on that villager. I add 1 to the integer variable VillagerCount when the unit event happens (a hero casts a spell on him to entrap him) and also add him VillagerArray[VillagerCount] unit group and also a separate VillagerFinalGroup unit group.
I also store the special effect in a special effect array variable: VillagerNetSpecialEffect[VillagerCount]
I know how to remove all nets at once but my question is... I want to have 2 villagers have their special effect remove every 15 seconds, how do I do that?
Right now to remove all 30 nets I use:
Any help is appreciated!!!
So for 1 of the maps I'm doing there are 30 villagers, after each one is captured I add him to VillagerArray[VillagerCount] (unit group array and integer) and then attach a special effect on that villager. I add 1 to the integer variable VillagerCount when the unit event happens (a hero casts a spell on him to entrap him) and also add him VillagerArray[VillagerCount] unit group and also a separate VillagerFinalGroup unit group.
I also store the special effect in a special effect array variable: VillagerNetSpecialEffect[VillagerCount]
I know how to remove all nets at once but my question is... I want to have 2 villagers have their special effect remove every 15 seconds, how do I do that?
Right now to remove all 30 nets I use:
-
Event
-
Time - Every 15.00 seconds of game time
-
-
Conditions (none)
-
Actions
-
For each (Integer A) from 0 to VillagerCount, do (Actions)
-
Loop - Actions
-
Special Effect - Destroy VillagerNetSpecialEffect[IntegerA]
-
Special Effect - Destroy VillagerNetSpecialEffect[VillagerCount]
-
-
-
Any help is appreciated!!!