• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Solved] Display text to players matching condition

Status
Not open for further replies.
Level 11
Joined
Jul 9, 2009
Messages
926
Does anyone know how to display a text only to the person who has the right conditions ? right now all i can see is to show it to a player group. If anyone knows, please help xD
 

Bannar

Code Reviewer
Level 26
Joined
Mar 19, 2008
Messages
3,140
Convert player to player force.

  • Init
    • Events
      • <your events>
    • Conditions
      • <your conditions>
    • Actions
      • Set your_force = (Player group (Triggering player))
      • Game - Display to your_force message <your message>
      • Custom script: call DestroyForce(udg_your_force)
@GangSpear your trigger leaks, you need to destroy force afterwards, like I did above.
 
Level 11
Joined
Jul 9, 2009
Messages
926
@Gangspear Apparently, that trigger does not work because when i tried that It also showed the text to my ally. because its like the Player Group of mine, that means my ally.

@Spinnaker ill try to use that , will give rep when it works ;)
 
Level 13
Joined
Oct 25, 2009
Messages
995
If you mean your ally,then all allies?
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Allies_Group = (All allies of Player 1 (Red))
      • Game - Display to Allies_Group for 30.00 seconds the text: You fail!
      • Custom script: call DestroyForce(udg_Allies_Group)
 
Level 11
Joined
Jul 9, 2009
Messages
926
no I just want to display it to a player
Spinnakers trigger worked ( I now owe you 2[Just added 1] xD )
 
Status
Not open for further replies.
Top