Difference between revisions of "Missiontext.plist"

From Elite Wiki
m (Layout)
m (Layout)
Line 15: Line 15:
  
 
*'''\"''' Enables the use of colons.
 
*'''\"''' Enables the use of colons.
*'''\\n''' Enter.
+
*'''\\n''' Insers a hard Enter.
  
 
In XML:
 
In XML:
*'''\n''' Inserts a hard enter.
+
*'''\n''' Inserts a hard Enter.
  
 
  Example:
 
  Example:
 
  <key>trumble_offer</key>
 
  <key>trumble_offer</key>
<string>Commander,\n\nYou look like a man who could use a Trumble!...</string>
+
<string>Commander,\n\nYou look like a man who could use a Trumble!...</string>
  
 
== Choices ==
 
== Choices ==

Revision as of 15:08, 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 Insers a hard 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>