CreatePotion
From NWN Lexicon
Contents |
[edit] 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 );
[edit] Parameters
oTarget
Container to create the item in.
oAdventurer
Player to derive level from.
nModifier
Modifier to increase teasure level. (Default: 0)
[edit] 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.
[edit] Remarks
This can be used to create the item in any object with an inventory.
[edit] Requirements
#include " nw_o2_coninclude "
[edit] Version
1.61
[edit] See Also
author: Michael Nork, editor: Lilac Soul, additional contributor(s): LeegleechN, Lilac Soul