Aller au contenu

Photo

Line Breaks in Conversations


  • Veuillez vous connecter pour répondre
10 réponses à ce sujet

#1
Johnas Lorika

Johnas Lorika
  • Members
  • 3 messages
Is there any newline code that can be used in conversations for formatting purposes?  I've tried some of the versions useable in other scripting/programming languages but to no avail.  It feels really odd to use a bunch of spaces to accomplish this...  Thanks! 

#2
Failed.Bard

Failed.Bard
  • Members
  • 774 messages
\\n works in most text situations as a line break in nwn.

#3
Axe_Murderer

Axe_Murderer
  • Members
  • 279 messages
You can just type them directly into the conversation editor using the return key.

#4
_six

_six
  • Members
  • 919 messages
There's also a few places where if just hitting enter won't work, holding shift and hitting enter will.

#5
Johnas Lorika

Johnas Lorika
  • Members
  • 3 messages
Thanks, I shall learn to attempt to hit my enter key when it is needed. :)

#6
henesua

henesua
  • Members
  • 3 878 messages
What about giving a custom token string to be used in conversation a line break?

What characters can you use to include a line break in the string?

#7
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
nwn uses the linux/unix standard of 0x0A or 10 in decimal or Control-J. However you want to look at it.

#8
henesua

henesua
  • Members
  • 3 878 messages
If I have a string variable in a script how do I insert that into it?

#9
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
You can just find one in the talk table if you wanted to. Let me look real quick.

#10
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
Something like. SetCustomToken(XXX,GetSubString(GetStringByStrRef(54),37,1 ));

#11
henesua

henesua
  • Members
  • 3 878 messages
thanks