Cant find username trigger

Status
Not open for further replies.
Level 3
Joined
Nov 8, 2017
Messages
30
I need help with my map, I want to make a map with special colors for specific usernames for me and my friends and I cant find the username trigger, I know its a condition, but I cant find it/how to do it. I've been searching for awhile and I've found solutions for how to use the condition, but nothing on finding it. Maybe its obvious and I'm just an idiot :confused: , or maybe its not available in the standard editor. So can anybody tell me how to find it?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
If you are referring to making a GUI condition then you are after a string comparison. One can then get the lower/upper case of the player name and test it against a constant.

BattleNet user account names are case insensitive so one has to cast the player name to either upper or lower case for a comparison against an appropriate cased constant to assure it always works.

For example I might play with the username "drsupergood" or "DrSuperGood" or "DrSuPeRgOoD" and the system should still recognize it as the same player name.
 
Status
Not open for further replies.
Top