• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Display text to triggering player only?

Status
Not open for further replies.
Level 17
Joined
Jan 8, 2015
Messages
498
Hi, i have trouble making trigger diplaying text on certain command just to triggering player. Currently it shows it to all. I found a threat about it but it doesnt explain anything really, especially when stuff is regarding variables it should be explained in detail, and there is none. So can anyone explain me how to make it work?(playergroup variable for triggering player)
 
  • Show text to triggering player
    • Events
      • Player - Player 1 (Red) types a chat message containing hello as An exact match
    • Conditions
    • Actions
      • Game - Display to (Player group((Triggering player))) the text: world
(All Players) -> Convert Player To Player Group -> Triggering player

Should work just fine.
 
It leaks, as Dane stated. You should set it to a variable and then destroy the group using call DestroyGroup( udg_TempVar )
 
Last edited:
Status
Not open for further replies.
Back
Top