How to break a long "display" text within AGS, NOT ingame...**SOLVED**

Started by Knox, Fri 28/05/2010 21:43:17

Previous topic - Next topic

Knox

Ok, Ive asked many questions lately so this should be my last one for a while, dont want to piss anyone off :P

Im sure its pretty simple but how can I break up a very long "display" text so that I dont have to scroll all the time in the window? Im not talking about using the "]" character to break lines in the game... For example, from this:
Code: ags

Display ("Hi, Im a super long text that makes me have to scroll all the way in AGS editor.");

To something like this?
Code: ags

Display ("Hi, Im a super long text that makes 
me have to scroll all the way in AGS editor.");


Hope its not a stupid question :P
--All that is necessary for evil to triumph is for good men to do nothing.

RickJ

I don't know if AGS has a line continuation character or not but you could use string formatting to accomplish what you descriobe.  It would look something like
the following:

Code: ags

Display ("Hi, %s %s",
   "Im a super long text that makes", 
    "me have to scroll all the way in AGS editor." );

Knox

--All that is necessary for evil to triumph is for good men to do nothing.

SMF spam blocked by CleanTalk