Difference between revisions of "Missiontext.plist"
Eric Walch (talk | contribs) m (→Choices) |
Eric Walch (talk | contribs) (Added new system name expansion.) |
||
Line 35: | Line 35: | ||
%R - Random word. |
%R - Random word. |
||
+ | |||
+ | %Jxxx - Will display the system name of system with ID number "xxx". xxx must be a 3 digit number or no replacement takes place. e.g. %J007 is Lave. (Feature added with Oolite 1.73) |
||
See also [[Methods#Communications|Communications in Methods]]. |
See also [[Methods#Communications|Communications in Methods]]. |
Revision as of 21:43, 16 July 2009
This is the filename of the file that contains all the text relevant to scripted missions.
Contents
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>
Special Expansions
These can be include in your text, within the <string>..</string>, to automatically insert the following detail;
[commander_name] - Displays the name of the saved game file.
[commander_shipname] - Displays the name of the players ship, as specified by shipdata.plist.
[commander_rank] - Displays the players Elite rating.
[commander_legal_status] - Displays the players current legal status.
[Thanks-for-assist] - Err, thanks the player for their assistance.
[Thargoid_curses} - Random Thargoid curses.
[police_attack_warning] - Random warning of immediate(?) attack.
%H - Will display the current system name i.e. Isinor.
%I - Displays the current system name with "ian" attached i.e. Isinorian.
%R - Random word.
%Jxxx - Will display the system name of system with ID number "xxx". xxx must be a 3 digit number or no replacement takes place. e.g. %J007 is Lave. (Feature added with Oolite 1.73)
See also Communications in Methods.
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>