I've been looking through the forums and the only posts I've seen are from 2010 saying it's not possible. I was wondering someone found a work around by now?
What I need is to be able to get the Players Name as a String, but the Trigger Editor only allows you to get the Players Name as Text. I need the Players Name as a String so I'm able to count how many characters the name contains.
It's not technically possible because of the differences between text and string variables. Text variables store a lot more information than string variables. It's like two different sizes of containers: a text variable is like a large pot, and a string variable is like a small cup. The cup can fit in the pot, but not visa-versa.
The workaround I've seen most mapmakers implement to grab a player's name as a string is to create a dialog box instructing the player to enter his name, then saving the result in a string variable. It's not pretty, but it's the only way D:
I've been looking through the forums and the only posts I've seen are from 2010 saying it's not possible. I was wondering someone found a work around by now?
What I need is to be able to get the Players Name as a String, but the Trigger Editor only allows you to get the Players Name as Text. I need the Players Name as a String so I'm able to count how many characters the name contains.
Any help would be great, thanks.
@Immortalisk: Go
It's not technically possible because of the differences between text and string variables. Text variables store a lot more information than string variables. It's like two different sizes of containers: a text variable is like a large pot, and a string variable is like a small cup. The cup can fit in the pot, but not visa-versa.
The workaround I've seen most mapmakers implement to grab a player's name as a string is to create a dialog box instructing the player to enter his name, then saving the result in a string variable. It's not pretty, but it's the only way D:
String with Boolean could display faster than Text' But Text Variables are more worth than Strings.
However' I do not seem to trust them despite their efficiency so I'd prefer String' If you want Game Modes'
But if you'd only regard it for Visuals - Like Dialogs - Cinematics and stuff' Text is more like - International in SC2 language.
Choose your bet :)