Difference between revisions of "Missiontext.plist"

From Elite Wiki
m (Layout)
m (categorised)
Line 35: Line 35:
 
  <string>No, sorry.</string>
 
  <string>No, sorry.</string>
 
  </dict>
 
  </dict>
 +
 +
[[Category:Oolite]]

Revision as of 15:09, 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>