I want to add some cheats in my map for testing some things ingame, but i want it only for me. Can i anyhow ask for the player name in a trigger? As condition/requirement Player name of triggering Player is "playless"
I dont find anything like this. Would help me much, so i can Betatest some things in running games.
It's not currently possible. You could join a custom channel or something before you start and send text commands to the private channel, though. (Make a password text command to activate the cheats.) But the safest thing to do would be to upload the map with the cheats disabled when you're not planning on using them.
The reason you can't convert a player name to a string is that you may, as a map author, create an advantage for yourself or others while playing a map (a cheat). However, worse than creating cheats is that it would be possible to create an automated Ban System, giving the map author the power to exclude certain players from the map. If players act inappropriately they should be reported using the ingame mechanic and Blizzard employees will handle the issue, according to the EULA.
People make that excuse, but reportedly (someone said it in the chat room, so I can't say it's a certainty), Blizzard is going to correct this inability to check for player names. I believe you can't convert Text to String because Text is localized and String is not.
Q. (Tordecybombo) - Any chance of allowing us to convert texts to strings? If not, any chance of allowing us to get some sort of player information? Such as the player's name or the player's character code as a string?
A. It's intentional that there is no text to string function or text comparison, in order to localize the game without requiring that every user have every language installed. Player Name returns a text value since computer controlled player names can be localized.
Naturally, I can't find the full explanation of the "Text to String" inability, but there are more reasons than the ones I mentioned plus the above explanation. :)
I want to add some cheats in my map for testing some things ingame, but i want it only for me. Can i anyhow ask for the player name in a trigger? As condition/requirement Player name of triggering Player is "playless" I dont find anything like this. Would help me much, so i can Betatest some things in running games.
@playlessNamer: Go
It's not currently possible. You could join a custom channel or something before you start and send text commands to the private channel, though. (Make a password text command to activate the cheats.) But the safest thing to do would be to upload the map with the cheats disabled when you're not planning on using them.
@playlessNamer: Go
'Player Name' is of the type "Text".
The reason you can't convert a player name to a string is that you may, as a map author, create an advantage for yourself or others while playing a map (a cheat). However, worse than creating cheats is that it would be possible to create an automated Ban System, giving the map author the power to exclude certain players from the map. If players act inappropriately they should be reported using the ingame mechanic and Blizzard employees will handle the issue, according to the EULA.
@Kafoso: Go
People make that excuse, but reportedly (someone said it in the chat room, so I can't say it's a certainty), Blizzard is going to correct this inability to check for player names. I believe you can't convert Text to String because Text is localized and String is not.
@DeProgrammer: Go
Agreed.
http:eu.battle.net/sc2/en/forum/topic/566309672#15
Naturally, I can't find the full explanation of the "Text to String" inability, but there are more reasons than the ones I mentioned plus the above explanation. :)
Make a custom bank value for you only and type some texte in a private channel to get what you want.