Difference between revisions of "Missiontext.plist"

From Elite Wiki
m (Structure)
m (Choices)
Line 36: Line 36:
 
  </dict>
 
  </dict>
  
[[Category:Oolite]]
+
[[Category:Oolite]][[Category:OXP_Howto]]

Revision as of 02:11, 23 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 <dict>. 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>