• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Wc3 linebreaks and other tags. help

Status
Not open for further replies.
Level 5
Joined
Feb 24, 2009
Messages
110
So far I know the color one |c########|r

Ive seen there is a linebreak one which is suppose to be "|n", but it wont work in my triggers.

  • Game - Display to (All players) the text: A|n B |n C
doesnt take the linebreak as commands


Is there any other codes?
Please explain me how to use the linebreaks, specially with
  • Game - Display to (All players) the text: (String 1 + String 2)
 
Level 14
Joined
Nov 18, 2007
Messages
1,084
Ex:
  • Custom script: call DisplayTextToPlayer(GetLocalPlayer(),0,0,"Yo ho" + "\nYo Ho")
In your case:
  • Custom script: call DisplayTextToPlayer(GetLocalPlayer(),0,0,udg_String_1 + "\n" + udg_String_2)
Note: It must be \n not |n (the one that works in the Object Editor).


I don't remember if there were any extra ones.
 
Status
Not open for further replies.
Top