Potion Object Functions for Mocha


spell potion_spell (object obj, integer index);
void set_potion_spell (object obj, integer index, spell spell_val);
Determine or set the spells invoked by a potion. Each potion is capable of invoking up to three spells (with indices 1 through 3) when recited. A single level is used when invoking all of the spells; the level is taken from the spell_val when set_potion_spell is called. To remove a spell from a potion, set the spell to the value {0, ""}.


Return to Mocha Object Functions Page

Return to Mocha's Main Page