Page 1 of 1

How to linebreak a textstring in a plotscript?

Posted: Sun Feb 11, 2018 10:12 pm
by marionline
Hello!
Is there a way to implem,ent a line break in a string variable?
As you can see on my screenshot, I need a "\n", so to say.

Code: Select all

... 

string sprintf(1, $0="You have nothing to put into the recycler. Gather some organic waste to recycle.")
show textbox (30)
wait for textbox
...

Posted: Sun Feb 11, 2018 10:36 pm
by TMC
HSpeak supports \n in strings

Also, string sprintf is redundant there, you can just directly put the text in string 1:

Code: Select all

$1="You have nothing to put into the recycler.\nGather some organic waste to recycle." 
But to get automatic line breaks you should use a text slice set to Wrap.

Posted: Mon Feb 12, 2018 6:53 pm
by marionline
Thank you! :D