TalentCureCondition

From NWN Lexicon
Jump to navigationJump to search



TalentCureCondition()

Cure Disease, Poison, Curse and Blindness and Deafness of nearest friendly target.

Description

Loops through all nearby (RADIUS_SIZE_HUGE) friendly creatures and determines which spells to cast to remove any ailments.



Remarks

Step by Step breakdown of the process is as follows:

Look for the nearest friendly target

Sum up all their ailments

If the target is
Level Drained or
Diseased and Poisoned or
just diseased or
cursed and poisoned or
cursed and diseased or
Blind and Deaf and Poisoned or
cursed and Blind and Deaf or
blind and deaf and diseased and
the creature has the Greater Restoration spell or the Restoration spell

Cast the better of the two Restoration spells that the creature has

else if the target is just diseased and/or poisoned and the creature has Neutralize Poison spell
Cast Neutralize Poison
else if the target is just diseased and the creature has Remove Disease spell
Cast Remove Disease
else if the target is only cursed and the creature has Remove Curse
Cast Remove Curse
else if the target is just blind and dead and the creature has the Remove Blindness and Deafness spell
Cast the Remove Blindness and Deafness spell

Find the next nearest friendly target and start the process over.


Requirements

#include " x0_i0_talent "

Version

1.61

See Also

functions: 

TalentHealingSelf

constants: 

RADIUS_SIZE_* Constants



 author: John Shuell, editors: Lilac Soul, Mistress, contributor: Graewerld