HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Did you know about this?, cause I didn't

07-23-2004, 09:20 PM#1
Vexorian
I thought that the string file was there to allow translations and carriage returns in text messages, but now I see it is only for the translations cause:

function Text takes nothing returns string
return "
asgasrg ewrgijerg erg
sdag
s



sd

sdg


saeg


edsger"
endfunction

Works without killing the compiler, and if you use Text() for argument of a text message, it shows it with carriage returns and that stuff.

I tested more and

call FunctionWith2Arguments( "areygsd a
aetg
asetgr5t
reg
325", "wht
dge
reger
ewt



")

Works too!

I didn't know about this, but if this was a known fact please tell me.
07-23-2004, 11:58 PM#2
weaaddar
Yes, I knew about this. I used it in Dialog Test 3.6 when doing Dialog Messages as dialog title use to ignore |n
07-24-2004, 12:15 PM#3
Cubasis
hmm,

this is new to me. Pretty wierd/interesting. I thought that all expressions in JASS were 1 line. Seems not.

~Cubasis
07-24-2004, 08:37 PM#4
Vexorian
I'd love if you could tell me that before, weaaddar, cause I used to have tons of text messages functions to use carriage returns in JASS
07-24-2004, 09:03 PM#5
weaaddar
Well it was largely useless as I said, because you can just use a |n in its place. its only use was dialog titles as they use to ignore |n and just display them as |n.