Briefing: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(created)
 
No edit summary
Line 11: Line 11:


It doesn't matter which .xd file this xdata entry goes into, as long as the xdata entry's name matches the format specified above ("maps/<mapname>/mission_briefing"). See [[XData File Creation]] for details on .xd files.
It doesn't matter which .xd file this xdata entry goes into, as long as the xdata entry's name matches the format specified above ("maps/<mapname>/mission_briefing"). See [[XData File Creation]] for details on .xd files.
[[Category:Editing]]

Revision as of 22:33, 4 May 2008

To create Briefing text for your mission, create an xdata entry with the name "maps/<mapname>/mission_briefing". The keys to specify are "num_pages" and "pageX_body" (where "X" is 1, 2, 3, etc, for each page). Here's an example:

maps/blackheart_manor/mission_briefing
{
    "num_pages"   : "2"
    "page1_body" : "I got a tip last night from..."
    "page2_body" : "So I suppose I should go check out the..."
}

If your page text is too long then it will truncate on the display, so test it out and see if you need to go to multiple pages. If you have multiple pages then up/down scroll arrows will automagically appear.

It doesn't matter which .xd file this xdata entry goes into, as long as the xdata entry's name matches the format specified above ("maps/<mapname>/mission_briefing"). See XData File Creation for details on .xd files.