SC2Mapster Forums

Development > Triggers

[Int] Length: Name of Player

  • 2 posts
    #1 Nov 10, 2012 at 19:50 UTC - 0 likes

    I'm having some real issues trying to figure out how long a player's name is...the problem being the player's name is a text element and only string elements can measure length. And of course, you can't convert text to string.

    Anyone have a nifty way of figuring out the length of a player's name?

    #2 Nov 10, 2012 at 20:34 UTC - 0 likes

    @huperphuff: Go

    I dont know... I guess you want to make tables and such dynamically? Check blizzard documentation of player profiles. There should be limits to how long your name is allowed to be. Also, check the Expression tab when editing texts. It can be a bit cryptic first, but basically its the most amazing part of the 1.5 patch. You can write "Give help to player ~ A ~ " And then in the lower segment set A to be the player name or handle (as text) from any variable or function, making the string be "Give help to player Monkalizer" or "Give help to player huperphuff" depending on what the variable is at the moment.

    Last edited Nov 10, 2012 by Monkalizer
  • 2 posts

You must login to post a comment. Don't have an account? Register to get one!