Prefers

From NWN Lexicon



Contents

[edit] Prefers(int, object)

Determines whether the adventurer prefers using a weapon type.

int Prefers(
    int nFeatWeaponType,
    object oAdventurer
);

[edit] Parameters

nFeatWeaponType

Use the feat constants to differentiate between weapon types.

oAdventurer

The PC to check their preference.


[edit] Description

Returns TRUE if oAdventurer prefers using the weapon type (nFeatWeaponType), otherwise FALSE.

The criteria used is if oAdventurer has Weapon Focus.



[edit] Remarks

This function is used in the NWN Treasure Generation System for creating treasure tailored to the player's PC.


[edit] Requirements

#include " nw_o2_feat "

[edit] Version

1.28

[edit] See Also

functions: 

GetWeaponFocus



 author: Tom Cassiotis, editor: Charles Feduke
 

Personal tools
Categories