Hi,
I have tried to create ability that will ping on minimap locations of your enemies with random offset.
logically, it should work. Can you please check it and give me some advice?
I have tried to create ability that will ping on minimap locations of your enemies with random offset.
logically, it should work. Can you please check it and give me some advice?
-
on the hunt
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to |cff32cd32On the hunt [T]|r
-
Actions
- Set random_integrer_arr[0] = (Real((Random integer number between 300 and 2000)))
- Set random_integrer_arr[1] = (Real((Random integer number between 300 and 2000)))
- Set owner_casting_unit = (Owner of (Triggering unit))
- Player Group - Add (Owner of (Triggering unit)) to player_group
-
Player Group - Pick every player in (All enemies of (Owner of (Triggering unit))) and do (Actions)
-
Loop - Actions
- Player Group - Add (Picked player) to enemy_player_group
-
Loop - Actions
-
Player Group - Pick every player in enemy_player_group and do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to unit_group
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in unit_group and do (Actions)
-
Loop - Actions
- Cinematic - Ping minimap for player_group at ((Position of (Picked unit)) offset by (random_integrer_arr[0], random_integrer_arr[1])) for 2.00 seconds, using a Warning ping of color (100.00%, 100.00%, 100.00%)
-
Loop - Actions
- Custom script: call DestroyGroup (udg_unit_group)
-
Events