Disabling heroes in taverns.

TzalDadok

New Member
Reaction score
2
I made this trigger for disabling heroes in taverns. When a player selects a hero, this will automatically dissapear from other taverns.

Trigger:
  • Disable Heroes
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • ((Sold unit) is A Hero) Equal to True
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
          • Game - Display to (All players) the text: ((Name of (Owner of (Buying unit))) + ( has chosen + (Name of (Sold unit))))


The problem is that when I buy a Hero the display text shows 6 times. Is a stupid problem, but I can't figure it out.

Thanks.
 

Moradiae

TH.net Regular
Reaction score
14
Simply put the Display text outside of your Loop - Actions:

Trigger:
  • Actions
    • Player Group - Pick every player in (All players) and do (Actions)
      • Loop - Actions
        • Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
    • Game - Display to (All players) the text: ((Name of (Owner of (Buying unit))) + ( has chosen + (Name of (Sold unit))))
 
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