• 🏆 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!

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

Level 8
Joined
May 12, 2018
Messages
106
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 12
Joined
Jan 10, 2023
Messages
191
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
 
Top