Difference between revisions of "Missiontext.plist"
m (was updated to be gender-neutral) |
Wildeblood (talk | contribs) m (→Structure: spelling) |
||
Line 3: | Line 3: | ||
== Structure == | == Structure == | ||
The file is organised as a dictionary { }. | The file is organised as a dictionary { }. | ||
− | Every entry consists of the key name, followed by a '=' and | + | Every entry consists of the key name, followed by a '=' and then the text in quotes. |
Example: | Example: | ||
conhunt_short_desc1 = "Hunt for the constrictor stolen from Xeer."; | conhunt_short_desc1 = "Hunt for the constrictor stolen from Xeer."; | ||
− | |||
==Special Expansions== | ==Special Expansions== |
Revision as of 06:17, 20 July 2012
This is the filename of the file that contains all the text relevant to scripted missions. See the Property List page for more detail on plists.
Contents
Structure
The file is organised as a dictionary { }. Every entry consists of the key name, followed by a '=' and then the text in quotes.
Example:
conhunt_short_desc1 = "Hunt for the constrictor stolen from Xeer.";
Special Expansions
These can be included in your text, inside the quotation marks in openStep, to automatically insert the following details:
[commander_name] - Displays the name of the saved game file.
[commander_shipname] - Displays the name of the player's ship, as specified by shipdata.plist.
[commander_shipdisplayname] - Could be different from commander_shipname.
[commander_rank] - Displays the player's Elite rating.
[commander_legal_status] - Displays the player's current legal status.
[commander_bounty] - Displays the current bounty on the player. (Oolite v1.74 & up)
[mission_xxxx] - displays the missionVariables.xxxxx.
[nom] - Generate a random surname.
[thanks-for-assist] - Err, thanks the player for their assistance.
[police-thanks-for-assist] - the police thanks the player personally.
[describe-pirate] - Random description for an outlaw.
[describe-Pirate] - Capitalized random description for an outlaw.
[thargoid_curses] - Random Thargoid curses.
[police_warning] - Random impending fines notifications.
[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.
%N - Random name. More variation than with %R. (Feature added with Oolite 1.73)
%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. This replacement follows any system renaming by other oxp's. (Feature added with Oolite 1.73)
If the message contains other elements enclosed in square brackets [like_this] that correspond to mission_variable names or keys in descriptions.plist, then these will also be expanded and substituted into the original message.
For further details, 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:
trumble_offer = "Commander,\\n\\nYou look like someone who could use a Trumble!...";
Choices
Most missions offer a choice, that is the spirit of elite.
Example:
nova_yesno = { YES = "Okay, I'll help"; NO = "No, sorry."; }
On the missionscreen the choices are sorted by key.