GetRange

From NWN Lexicon



Contents

[edit] GetRange(int, int)

Determines whether the HD falls in a range category.

int GetRange(
    int nCategory,
    int nHD
);

[edit] Parameters

nCategory

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

nHD

The HD to test.


[edit] 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.



[edit] 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


[edit] Requirements

#include " nw_o2_coninclude "

[edit] Version

1.22

[edit] See Also



 author: Tom Cassiotis
 

Personal tools
Categories