Showing a message when a specific unit is selected

AlicanC

New Member
Reaction score
2
I'm working ona new map. I created a new unit from "Tent" unit and replaced it's models with "Post Sign" dodoad. Now I have a sign Unit and I want this:
When a user selects the (Neatural Passive) Sign, a message sent to the selecter.

Ex: A player clicks to the sign and a message appears like "This is a forbidden area."

I tried this but it didn't work:
Event
Player - Player 1 (Red) Selects a unit
Condition
(Random unit from (Units currently selected by (Picked player))) Equal to Sign 0026 <gen>
Action
Game - Display to (Player group((Picked player))) for 15.00 seconds the text: |c00ff0000B|r|c00ff...
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
-Event
Player - Player 1 (Red) Selects a unit
-Condition
(Triggering unit) Equal to Sign 0026 <gen>
Action
-Game - Display to (Player group(Triggering player)) for 15.00 seconds the text: |c00ff0000B|r|c00ff...

Should work.
 

SnowCrow

New Member
Reaction score
7
Picked Player is used only when there is an action that picks every player, like:
Code:
Player
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Player Group - [B]Pick[/B] every player in (All players) and do (Actions)
            Loop - Actions
                Player - Add 1000 to [B](Picked player)[/B] Current gold
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top