Change color of player on multiboard and remove from multiboard when leaving

Do you need World Editor help? Ask here!
Forum rules
Before making a new topic:
First, check if your question has already been answered in the Tutorials section.
If you didn't find a solution, use the search function.
If searching didn't help either, you can make a new topic.

Topic title & content:
You must use a descriptive title. (Help plz is not good) (Need help with Dialog buttons is good)
Go into much detail when posting. You should post attachments. Like screenshots of the problem, the map you are making, replays of the error. Or you could even make a screencast (video) of your problem and upload it here.

Spelling:
Grammar seems to be a serious problem amongst teenagers, so use a spell checker or you will get no love.
Read your posts twice, before pressing the reply button.
And do not use profanity. Chatspeak (y r u nub) and Leetspeak (1 C4N S33 H4X) are not welcome here either.

Only World Editor related questions are allowed here!
(Click for Battle.net help) (Click for World Editor help)
User avatar
DieKralle
Posts: 197
Joined: Thu Jan 07, 2016 1:05 pm
Realm: Europe
Account: DieKralle#21740

Change color of player on multiboard and remove from multiboard when leaving

Unread post by DieKralle »

Hello,

I'm currently searching for a solution for my problems. I have created a multiboard which lists all active players. I wanted to do two things:
First I wanted to make the player name have the same color as the slot color they are in. Currently they are all white.
Secondly I wanted to remove only the row of the player that left. Optionally I would not remove them but instead put behind the players name "(Left)" and make the name grey and a bit transparent.

How can I achieve this?
"You can't blame gravity, for falling in love"

User avatar
3ICE
Admin
Posts: 2655
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Change color of player on multiboard and remove from multiboard when leaving

Unread post by 3ICE »

Set Player 1 name to string concatenate("|cffff0000" + name of(player 1))
Repeat for all players. (Ending with "|r" optional, takes two nested string concatenations)
You can find All about colors on my blog; https://3ICE.hu/blog/WarCraft-color

And then t_eve event t_pla player leaves game t_act action t_pgr change player name of t_all triggering player to t_set concatenate t_gam name of triggering player + " |cffcccccc(left)"

Edit: transparent sound like a cool idea but sadly not possible. In theory the first ff after |c is the alpha value in color codes so changing it to 80 would be 50% see through, (ff/2=80 because ff=255 half of which is ~128=hex 80), but in practice the game ignores it. All strings are opaque.
ImageImageImageImageImage
Image
ImageImage

Post Reply

Who is online

Users browsing this forum: No registered users and 139 guests