Prefers(int, object)

Determines whether the adventurer prefers using a weapon type.

int Prefers(
    int nFeatWeaponType,
    object oAdventurer
);

Parameters

nFeatWeaponType

Use the feat constants to differentiate between weapon types.

oAdventurer

The PC to check their preference.


Description

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

The criteria used is if oAdventurer has Weapon Focus.



Remarks

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


Requirements

#include "nw_o2_feat"

Version

1.28

See Also

functions: GetWeaponFocus
categories: Core AI Functions | Item Creation Functions


 author: Tom Cassiotis, editor: Charles Feduke