• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Error Message

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
Is there any way in GUI that we can display custom-made Error Message
For example, the famous "Spell is not ready yet"
I wanna make so that when a player is not enough level to enter a certain area, an error message would appear such as "Not enough level" and create that "error" sound + gold-like color text message appear at near-middle of the screen
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
You can either change a standard error message (such as the food limit one if you don't use food in your map) to display what you want, or you can use:

JASS:
call DisplayTextToPlayer(Player(0), 1.0, 0., "Test")
Which will show message "Test" to Player(0) with coordinates (1.0, 0.0).
Negative coordinates don't work and x = 1.0 will return the center of the screen.
(And the color they use is probably "|c00ffcc00").
 
Status
Not open for further replies.
Top