Jump to content
Sign in to follow this  
alleycat

Printing array with linebreak problem

Recommended Posts

I have an array of strings (items) that I would like to print in a coherent text with a linebreak. This is easy to do in diag_log text but not for diary records or dialogs.

 

array = ["item1","item1","item1","item1","item1"];

 

If I just print it out in any known game format it ends up like that. If I use

{ diag_log text  _x; } forEach array;

I get a new line of text for each entry, but only for console log. Is it possible to build a string like this that can be used in parse text?

 

 

https://community.bistudio.com/wiki/composeTextlooks interesting but I am not sure how to modify the syntax to iterate through a loop.

Share this post


Link to post
Share on other sites

Thanks. A lot. I was trying to figure that out for two weeks.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×