CreatePotion(object, object, int)

Creates a random potion in a container as part of the treasure system.

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

Parameters

oTarget

Container to create the item in.

oAdventurer

Player to derive level from.

nModifier

Modifier to increase teasure level. (Default: 0)


Description

This function creates a random potion in the container based on the level of oAdventurer + nModifier. This function is part of the NWN Treasure Distribution System.



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

categories: Item Creation Functions


 author: Michael Nork, editor: Lilac Soul, additional contributor(s): LeegleechN, Lilac Soul