Message to single player (Easy +REP)

Julian4life

New Member
Reaction score
7
Easy question that i dont seem to remember how to do. I searched for it, but it didn't come up (probably too easy so people dont need to post).

This is it. I need a message to display (as if you were to chat) to only ONE player when they enter a region.

Kinda like how in dota, it'll say, "FIRST BLOOD" to all player, but i want mine to be sent only to the player who steps in the region.

I want it to say, "Do Not Trust Anything. Find The Real End!"


Yep, easy +rep to anyone who helps first.
 

Azlier

Old World Ghost
Reaction score
461
Trigger:
  • LOL WUT
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Set MySoundVar = Whatever sound you want...
      • Custom script: if GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit()) then
      • Custom script: call StartSound(udg_MySoundVar)
      • Custom script: endif
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Code:
Code
    Events
        A unit enters region
    Conditions
        Your Conditions
    Actions
        Display to Player Group(Owner of (Triggering unit))
 

Azlier

Old World Ghost
Reaction score
461
I'm pretty sure he means sound, not text. Luckily I played DotA enough (two times, both utter failures) to know that First Blood! is a sound. :p
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
He says, "message to display (as if you were to chat)"...
 

Azlier

Old World Ghost
Reaction score
461
Ah. Didn't see that. Must... stop... skipping... lines :banghead:
 

saw792

Is known to say things. That is all.
Reaction score
280
That displays it to Player(0)... every time. Why not type:
Trigger:
  • Custom Script: call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()), "Your Message")
so that it actually works for any player that enters the region.
 

mightywarior

New Member
Reaction score
2
i dont know what the crap the other guys are talking about but the simple way is just this

Tigger editor--create a new trigger

event- Unit - A unit enters (your region) <gen>


Actions-
Game - Display to (Player group((Triggering player))) the text: Do Not Trust Anything, Find the real end!))

in actions just look under "game - text message (auto-timed)"

its really simple. i think you knew that though. so here you go.
 

Julian4life

New Member
Reaction score
7
wow thanks guys. I +rep'd everyone who helped (actually helped).

And thought im not familiar with jass, i could use it as a custom script, so i rep'd anyways. TY AGAIN.
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
That displays it to Player(0)... every time. Why not type:
Trigger:
  • Custom Script: call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()), &quot;Your Message&quot;)
so that it actually works for any player that enters the region.
I read player 1?
Sorry.
 

saw792

Is known to say things. That is all.
Reaction score
280
The reason I use the custom script as opposed to using Player Group(Owner of (Triggering Unit)) is because the GUI creates a player group leak. Easy to fix, but simpler still to not create it in the first place.
 
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