A player selects a unit, it shows a text message...there's a problem!

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,697
From where the title is left off:

...when you re-select the same unit, it doesn't show up the same messages over again every time you press it. How do you do it?
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Just use the unit's custom value(*) and "mark" him selected.

Events
- Unit - yourunit Is selected
Conditions
- (Custom value of (Triggering unit)) Equal to 0
Actions
- Unit - Set the custom value of (Triggering unit) to 1
- Game - Display to (yourplayergroup) the text: yourmessage



(*) Or anything else you find comfortable. Global boolean? ... I don't know.
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Well, you can always turn the trigger off after doing what it is supposed to do.

But that wouldn't be so fancy...More efficient, yes.
 

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,697
Oh well. I'll think of something. Thanks for your help.
 
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