CraftBrewPotion

From NWN Lexicon


Contents

[edit] CraftBrewPotion(object, int)

Create and return a magical potion for a specified spell.

object CraftBrewPotion(
    object oCreator,
    int nSpellID
);

[edit] Parameters

oCreator

Object in whose inventory the newly created magical potion is to be placed.

nSpellID

ID of the spell that is to be represented by the potion.


[edit] Description

This function creates a magical potion with a specified spellID, places it into the inventory of oCreator and returns the potion object.

If the potion could not be successfully created, OBJECT_INVALID is returned instead.



[edit] Remarks

This functions is used within CICraftCheckBrewPotion () to create a magical potion on oCreator.

It will work within or outside of a spell script.

oCreator need not be able to brew potions; nor do they need to pay any gold or XP.


[edit] Requirements

#include " x2_inc_craft "


[edit] Version

???

[edit] See Also

functions: 

CIGetIsCraftFeatBaseItem



author: motu99, editor: Mistress

Personal tools
Categories