Difference between revisions of "Missiontext.plist"

From Elite Wiki
(creation)
 
m (Layout)
Line 18: Line 18:
   
 
In XML:
 
In XML:
*'''\n Inserts a hard enter.
+
*'''\n''' Inserts a hard enter.
   
 
Example:
 
Example:

Revision as of 16:07, 22 January 2006

This is the filename of the file that contains all the text relevant to scripted missions.

Structure

The file is organised as a dictionary. Every entry consists of the name <key>, followed by the text<string>.

Example:
  conhunt_short_desc1 = "Hunt for the constrictor stolen from Xeer.";
or in XML:
  <key>conhunt_short_desc1</key>
  <string>Hunt for the constrictor stolen from Xeer.</string>

Layout

Several spacial characters are used in determining the layout of the text, just as in Wiki.

  • \" Enables the use of colons.
  • \\n Enter.

In XML:

  • \n Inserts a hard enter.
Example:
<key>trumble_offer</key>

<string>Commander,\n\nYou look like a man who could use a Trumble!...</string>

Choices

Most missions offer a choice, that is the spirit of elite.

Example:
<key>nova_yesno</key>
	<dict>
		<key>YES</key>
		<string>Okay, I'll help.</string>
		<key>NO</key>
		<string>No, sorry.</string>
	</dict>