TalentBuffSelf()

Used for Potions of Enhancement and Protection

int TalentBuffSelf();

Description

Returns TRUE if the calling creature can find the best Protection potion and use it, or find the best enhancement potion and use it. Otherwise will return FALSE.



Remarks

The breakdown of steps taken by this function are the following:

Find the best protection potion the creature has.

If the creature doesnt have a protection potion then get the best enhancement potion the creature has.

Make sure that the same effects of the potion chosen are not already being applied to the creature

If all is well, drink the potion


Requirements

#include "x0_i0_talent"

Version

1.61

See Also

functions: TalentEnhanceOthers | TalentHealingSelf | TalentUseEnhancementOnSelf
categories: Core AI Talent Functions | Inventory Functions | Talents/Skills/Feats Functions


 author: John Shuell, editors: Lilac Soul, Mistress