Text?

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
After a long moment I didn't do mapping, I almost forgot everything I've learnt.

Problem:
JASS:
"Kill him!|n(So easy eh?!)"


It should shows:
Code:
Kill him!
(So easy eh?!)

But it doesn't and it shows:
Code:
Kill him!|n(So easy eh?!)

Wonder what's the solution? (I've forgotten it)
 

Builder Bob

Live free or don't
Reaction score
249
The solution is to just make a new line in your code like this:

JASS:
local string whichString = "Kill him!
(So easy eh?!)"

or
JASS:
call BJDebugMsg("Kill him!
(So easy eh?!)")


It looks strange, but it works.
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
>>@bulder Bob
It do looks strange and untidy for me.
As I've alot of strings combining . xD

Although your method works, I wonder why my earlier method doesn't work?
 

Builder Bob

Live free or don't
Reaction score
249
>>@bulder Bob
It do looks strange and untidy for me.
As I've alot of strings combining . xD

Although your method works, I wonder why my earlier method doesn't work?

Using |n in Jass code has never worked for me. It only works in tooltips (and maybe some other places).
I know it looks untidy, but I am afraid it is the only solution. Well, I guess I can't be 100% sure.

Edit: Welcome back :)
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
>>Using |n in Jass code has never worked for me. It only works in tooltips (and maybe some other places).
I know it looks untidy, but I am afraid it is the only solution. Well, I guess I can't be 100% sure.

Only displaying the text to player doesn't works.
I did the same on creating quest or tooltip, everything things work.

*Even tried "\n"
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
>>I don't think I understand.
I mean that everytime I use |n in creating quest, writting tooltip, it works.
But when I use it in function calls such as BJDebugMsg, it doesn't works as it should.
 

Builder Bob

Live free or don't
Reaction score
249
I mean that everytime I use |n in creating quest, writting tooltip, it works.
But when I use it in function calls such as BJDebugMsg, it doesn't works as it should.

[del]Yeah... It sucks.

Hmmm... |n could be added to JassHelper.[/del]

Edit: Hey, I just tested if \n works to make a line break, and it does for me now. I don't know if it is JassHelper doing something or if it just always worked. If it's JassHelper, just get the newest JassNewGen
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
>>|n could be added to JassHelper.
What could that mean?
 

cleeezzz

The Undead Ranger.
Reaction score
268
yeah, in object editor, line breaks are |n, in the script though, its a "escape character" so its \n

(if you try creating a sfx with a path like Abilities\hi, syntax will say "invalid escape character sequence " which is why you have to do Abilities\\hi, since one "\" is reserved for those commands)

in fact, the jass tags highlights them for u

JASS:
"Hi\nHi"


JASS:
"Abilities\\hi"
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top