• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Game Message only for Triggering Player

Status
Not open for further replies.
Level 7
Joined
Jun 14, 2009
Messages
235
  • Trigger
    • Events
      • Event
    • Conditions
    • Actions
      • Player Group - Add (Triggering player) to Temp_Group
      • Game - Display to Temp_Group the text: "Text"
      • Player Group - Remove (Triggering player) from Temp_Group
      • Custom script: call DestroyForce(udg_Temp_Group)
 
  • Trigger
    • Events
      • Event
    • Conditions
    • Actions
      • Player Group - Add (Triggering player) to Temp_Group
      • Game - Display to Temp_Group the text: "Text"
      • Player Group - Remove (Triggering player) from Temp_Group
      • Custom script: call DestroyForce(udg_Temp_Group)

Nop, this will will show the message on every player that's currently in the player group. Assassins-Creed's solution is the easiest and most appropriate.
 
Level 11
Joined
Aug 1, 2009
Messages
714
  • Action
  • Game - Display to (Player group((Triggering player))) for 30.00 seconds the text: blablabla
Convert player to player group.

Leaky. Use this one.
  • Actions
    • Set PGroup = (Player group((Triggering player)))
    • Game - Display to (All players) for 5.00 seconds the text: I got the power!
    • Custom script: call DestroyForce(udg_PGroup)
 
Level 14
Joined
Aug 30, 2004
Messages
909
How could his be leaky? What could go wrong?
[Is it to "simple"? ] It work fine .

Player groups leak apparently. If your map starts getting slow and choppy while you're playing it, come back and learn how to remove leaks. Most maps aren't effected by it. If you're using some periodic triggers that fire once a second or so and have leaks in them you will get a problem.
 
Status
Not open for further replies.
Top