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)
 
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.
 
>>@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?
 
>>@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 :)
 
>>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"
 
>>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.
 
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
 
>>|n could be added to JassHelper.
What could that mean?
 
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 The Helper:
    It is weird seeing a way more realistic users online number
  • The Helper The Helper:
    Happy Tuesday Night!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top