Displaying Text Messages to a particular player.

  • Thread starter Thread starter WL-13
  • Start date Start date
W

WL-13

Guest
Hi, I have been trying to display a text message to a player only, I've tried so many things, but it always displays it to everyone.

Event:
A unit comes within 400 range of AgilityMaster.

Action:
Game - Display to (All players controlled by a ((Owner of (Triggering unit)) controller) player) for 20.00 seconds the text: <text>

Somehow it keeps displaying it to every player. Anyone got any ideas why it's doing that?
 
uhm.. i see one error, youd have to have a player controled by the triggering unit, not possible to do i dont think.
 
I used triggering unit because for the <A unit comes within 400 range of AgilityMaster.> Event, it said to use "Triggering Player" when referring to it. Any helps?
 
phyrex1an said:
Code:
Game - Display to (Player group((Owner of (Triggering unit)))) for 30.00 seconds the text: <bla>

Convert Player To Player Group

OMG, THANK YOU!
 
By the way , Convert player to player group actually means: Create Player Group, add the player and return the new created Player Group. So it would leak if you don't remove it.

Although a better solution would be:

Code:
Map initialization:
--
for each integer A from 1 to 12 do actions:
       set PlayerForce[(Integer A)] = Convert Player to player group ( Convert Index to player (Integer A) )


Then just use the contents of the array PlayerForce for that:

Code:
     Show ("ooh" to (PlayerForce[Convert player to index(...) ] )



Actually the best solution is to use JASS or UMSWE / WEU / whatever to use the native that takes a player directly to make a message instead of the dumb BJ function that only takes force
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top