• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] [Solved] Write new lines with combined strings?

Status
Not open for further replies.
Level 9
Joined
May 12, 2018
Messages
145
1687488343411.png

hi, I am writing quest message, but I don't know how to write new lines with combined strings including I2S. |n is only working on Logs, \n doesn't work.
Number of caravan is changed according to game difficulty level.
here's my gui.
  • Quest - Display to Player Group - Player 1 (Red) the Quest Discovered message: (|cffffcc00MAIN QUEST|r + (\nOperation Strangle + (\nDestroy Sylvans' supply caravans + (|nNo more than + ((String(MainQuest00_CaravanLimit)) + caravan should pass through)))))
 
Last edited:
Level 14
Joined
Jan 10, 2023
Messages
247
I was shown this solution in this thread a while back.
Leveraging custom script to set a temporary variable removes the printed |n bug.

But you use standard line breaks (\n) instead of the WC3 tag.
  • Test
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Custom script: set udg_text_string = "\nTest Break\n\n|cff00ff00Color Test|r"
      • Game - Display to (All players) the text: text_string
 
Status
Not open for further replies.
Top