NOD Engine SDK 1.0

NTT File Specifications

Introduction

The NTT (Nihilistic Treasure Types) file is used to create random treasure in the game. The intention of the NTT file was to allow random treasure to be created and even modified using plain text files to set their various parameters. The treasure classes are used to generate store inventories and create random items dropped by NPCs and containers placed in the game.

Keywords and values are separated by any whitespace character, such as SPACE or TAB. Lines that begin with ";" are treated as comments and ignored. Blank vertical lines are also ignored. Parameter names are not case sensitive and can appear in any order within a definition. Unlike object templates, there is no inheritance for particle emitters, so any parameters not defined will default to hard-coded values based on the emitter type.

File Format

Valid treasure classes are numbered between 0-255. Each class has a number of category lines (described near the top of the file under "CATEGORY DEFINITIONS") that consist of 1 to 14 template names. Following each category name is the percentage of chance that an object of the first CITEM is generated. If it fails the system goes to the next CITEM.

The classes have also been organized into relatively-friendly groups, as follows:

PROGRESSION-BASED ITEMS

1-5 SilverMines

6-10 PetrinHill

11-15 JosefsTunnels

16-20 ArdansChantry

21-25 Stephansdom

26-30 TeutonicKnightBase

31-35 HausDeHexe

36-40 VysehradCastle

41-45 SocietyOfLeopold

46-50 SetiteTemple

51-55 TowerOfLondon

56-60 NYCSewers

61-65 NYCWarehouse

66-70 OrsiFactory

71-75 CathedralOfFlesh

NPC DROPITEM CLASSES

131-140 Prague npcs

141-150 Vienna npcs

151-160 London npcs

161-170 New York npcs

POTIONS, VITAE, SCROLLS AND MAGICITEMS

171-180 Potions

181-190 Vitae

191-200 Scrolls

201-210 Kine items

GENERIC ITEMS

211-230 Dark Ages items

231-255 Modern day items

 

Cash

Random cash values can be generated by assigning a "cashNUM" under the next ("ALTER1") column. Ranges are as follows:

ALTER: cash0 1 5

ALTER: cash1 2 10

ALTER: cash2 11 50

ALTER: cash3 51 100

ALTER: cash4 101 500

ALTER: cash5 501 1000

ALTER: cash6 1001 2000

ALTER: cash7 2001 5000

 

Sample File

CLASS: 26

CITEM: teutonloot 30 cash4 0 - 0 - 0

CITEM: teutonammo 30 - 0 - 0 - 0

CITEM: teutonitems 30 - 0 - 0 - 0

CITEM: scrollsThauBlood 30 - 0 - 0 - 0

CITEM: teutonweapons 30 - 0 - 0 - 0

CITEM: teutonarmor 90 - 0 - 0 - 0