will this trigger work

Denegoth

New Member
Reaction score
18
im making some more heroes for my hero arena v2.1 and i need to know if this trigger works. its supposed to select a random player controlled hero and kill it

Roulette
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Roulette
Actions
Unit Group - Pick every unit in (Units owned by (Random player from (All players controlled by a User player))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
Then - Actions
Unit - Kill (Picked unit)
Else - Actions
Do nothing
 

2-P

I will work hard tomorrow
Reaction score
325
<3 I love these threads. Why oh why don't you just try it?

Anyway, it will kill all heroes controlled by a random player.
 

C-Death

I love you
Reaction score
45
I think it will work, alotho im no trigger expert.
 

R@d14nc3

New Member
Reaction score
49
Whenever you use unit groups, be sure to add Setbj_WantDestroyGroup=True to avoid unit group leaks.
 

Potatisbil

New Member
Reaction score
6
yep, it should work. :p

and to avoid mem leaks you can add the thing R@d mentioned to the loop :

Custom script : set bj_wantDestroyGroup = true
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top