- Joined
- May 15, 2009
- Messages
- 192
Hey Battlehound again. I am trying to create an assist system for my map. It is a hero AOS (style of Dota, if you know what that is) and I wanted to make a system so that not only the person who lands a killing blow on an enemy hero, but also anyone dealing damage, will get gold from the kill.
So basically what I tried to do is add anyone who deals damage to a hero into a unit group, then, after 30 seconds, they would be removed. Here is the trigger I tried.
But it seems that no1 is added or removed from the group. Help appreciated
So basically what I tried to do is add anyone who deals damage to a hero into a unit group, then, after 30 seconds, they would be removed. Here is the trigger I tried.
-
Assist Group
-
Events
- Game - DamageEvent becomes Equal to 1.00
-
Conditions
- (DamageEventSource is A Hero) Equal to True
- (DamageEventTarget is A Hero) Equal to True
- (DamageEventSource belongs to an enemy of (Owner of DamageEventTarget)) Equal to True
-
Actions
- Unit Group - Add DamageEventSource to AssistGroup
- Countdown Timer - Start Assist_Timer[(Player number of (Owner of DamageEventSource))] as a One-shot timer that will expire in 3.00 seconds
-
Events
-
Assist Group Remove P2
-
Events
- Time - Assist_Timer[2] expires
- Conditions
-
Actions
- Unit Group - Remove (Triggering unit) from AssistGroup
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units owned by Player 2 (Blue)) and do (Actions)
-
Loop - Actions
- Unit Group - Remove (Picked unit) from AssistGroup
-
Loop - Actions
- Game - Display to (All players) the text: (String((Number of units in AssistGroup)))
-
Events
But it seems that no1 is added or removed from the group. Help appreciated