Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
does anyone know if it is possible to refer (with vexorians sim-error function) to an error-strings that is allready 'ingame' , that versions of diffrent languages would always have a correct error ?
// Display "player was victorious" or "player has left the game" message
if (leftGame) then
set formatString = GetLocalizedString( "PLAYER_LEFT_GAME" )
else
set formatString = GetLocalizedString( "PLAYER_VICTORIOUS" )
endif
It looks like GetLocalizedString returns the value of a string defined in one of the .txt in the .mpq file.
You should be able to find the name of your error message in one of the .txt files and use that.
It would probably be something like this:
JASS:
local string error = GetLocalizedString( "ERROR_GOLD" )
i found the source (they are in the game-interface options in the worldeditor, as well in the units \commandstring.txt in the .mpq file) but the fuction returns the source as a string not the value.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.