.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 2: The Ascension Wars (http://forum.shrapnelgames.com/forumdisplay.php?f=55)
-   -   Modding question/request (http://forum.shrapnelgames.com/showthread.php?t=19074)

PvK May 15th, 2004 02:56 AM

Modding question/request
 
Is there a way to insert new-line characters into mod strings?

I'm trying to create a good entry for #summary, which for the unmodded nations includes lists with multiple lines:

Race: Humans
Military: Infantry, Trained Farm Animals
Magic: Nature
Priests: ...

But I don't know how to make each line start on a new line, so it doesn't look the same. "\n" didn't do anything special...

Anyone know how?

If there's no way, I'd like to request it.

PvK

Gandalf Parker May 15th, 2004 03:21 AM

Re: Modding question/request
 
The same thing came up for the maps description. There was an answer. Something about a unix return instead of a DOS one.

[ May 15, 2004, 03:47: Message edited by: Gandalf Parker ]

Johan K May 17th, 2004 12:37 AM

Re: Modding question/request
 
Two 'newline' in a row will make the next word appear on the next row. There must not be any other control characters between these newlines, so make sure to use a Dominions compatible editor like emacs for linux http://forum.shrapnelgames.com/images/icons/tongue.gif . Windows editors often put some extra stuff at the end of each line so beware of those.

It would look like this

".............................

Race: .........

Military: ........."

PvK May 17th, 2004 01:50 AM

Re: Modding question/request
 
Excellent - thanks Johan!

PvK


All times are GMT -4. The time now is 01:05 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.