NOD Engine SDK 1.0

NQD File Specifications

Introduction

The NQD file holds definitions for various quests in the game. Quests can exist in both singleplayer and multiplayer games. The NQD file controls the display of the quest in the userís quest log, in addition the XP value for the completion of the quest and other game-specific information.

File Format

The file is a simple ASCII file editable by any text editor such as Notepad. Field are separated by either spaces or tab characters. Most files contain a single line that defines the quest. There are other fields and line types that were used in previous versions but are not actively supported in version 1.0.

Comment lines begin with the character "#". Only one QUEST line should exist per file.

Quest definition lines take the format:

"QUEST <numItems> <flags> <short desc> <long desc> <icon> <xp value>"

Field

Description

LineType

Must be "quest"

NumItems

Number of sub-quest items (not supported, use 0)

Flags

Special behavior flags for the quest (not used)

Short Desc

Short description StringID. Corresponds to the actual localized string in an NLS file (see NLS file docs). This is the description shown in the Quest pane

Long Desc

Long description StringID. This is the longer description shown in the rollover text area if the user selects the quest.

Icon

Name of the icon to display (TGA filename)

XP Value

Amount of XP to award when the quest is completed.

 

Sample NQD File

# N1_FindHeart.nqd - Quest definition.
##########################################################
QUEST 0 0 Q_FINDHEART_S Q_FINDHEART_L lucretiasHeartIcon.tga 9000