GetRange(int, int)

Determines whether the HD falls in a range category.

int GetRange(
    int nCategory,
    int nHD
);

Parameters

nCategory

The category to test if nHD falls in (1-6).

nHD

The HD to test.


Description

Returns TRUE if nHD matches the correct level range for the indicated nCategory, otherwise returns FALSE.

For example, First to Fifth level characters are considered category 1.



Remarks

BioWare uses this function to help scale many aspects of the module including treasure generation, trap kits.

Range 1: 0-5 HD
Range 2: 6-8 HD
Range 3: 9-10 HD
Range 4: 11-13 HD
Range 5: 14-16 HD
Range 6: 17-100 HD


Requirements

#include "nw_o2_coninclude"

Version

1.22

See Also

categories: Module Specific Functions


 author: Tom Cassiotis