CreateGenericDruidWeapon

From NWN Lexicon
Jump to: navigation, search



CreateGenericDruidWeapon(object, object, int)

Creates an appropriate druid weapon that fits the level of the PC, and places it in/on an object.

void CreateGenericDruidWeapon(
    object oTarget,
    object oAdventurer,
    int nModifier = 0
);

Parameters

oTarget

Object to receive the generic druid weapon. (Most likely a placeable with an inventory.)

oAdventurer

PC who's total HD will be used to generate appropriate level of weapon.

nModifier

Additional HD levels you want to 'give' to the PC in determining level of weapon being spawned. (Default: 0)


Description

Creates one of a specific list of generic weapons that a druid would find helpful. This generic weapon is based off a random number and the total levels of the oAdventurer.



Remarks

This can be used to create the item in any object with an inventory.


Requirements

#include " NW_O2_CONINCLUDE "

Version

1.61

See Also

functions: 

CreateItemOnObject



 author: Jody Fletcher, editor: Lilac Soul