Briefing

From The DarkMod Wiki
Revision as of 22:31, 4 May 2008 by Joebarnin (talk | contribs) (created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.