View Single Post
Old 12-03-2003, 03:42 AM   #1
Dundee Slaytern
Ironworks Moderator
 

Join Date: June 10, 2001
Location: Pasir Ris, Singapore
Age: 42
Posts: 11,063
To put it simply, I need some feedback on this AI Script that I have made for IWD+HoW.

Click Here

If all goes well... the Paladin using this script will be able to do the following,

Cast Sanctuary on self when HP falls below 25%. When in Sanctuary mode, the Paladin will not do anything on its own.

The Paladin is now smart enough to drink Elixirs of Health and Antidotes when poisoned. Will also drink Mummy's Tea when diseased.

Will drink health potions when HP falls below 50% (NOTE: If the healing factor outnumbers the missing HP, the potion will not be drunk). These includes Potion of Healing, Potion of Extra Healing and Elven Healing Wine. Will only drink when enemies are in sight.

Will cast Cure Light/Moderate/Serious/Critical Wounds on self when HP falls below 50%. Will cast Heal when HP falls below 40%. Will only cast when enemies are in sight.

Will cast buffers during combat every 2 rounds or so. These include Bless, Innate Protection from Evil, Protection from Evil, Aid (if enemy's XP value is 420+) and Draw Upon Holy Might (if enemy's XP value is 1400+).

Will cast offensive spells on suitable targets. These include Smite Evil and Magical Stone (on Undead only).

If the nearest target is far away, the Paladin will attempt to switch to ranged weaponary, else he will melee as per normal.

A target is suitable for casting upon if...
1) Its' Magic Resistance is not higher than 40%
2) It is not invisible
3) It is not helpless already
4) It is not panicked
5) It is not Mirror Imaged
6) It is not Charmed

The Paladin will only take notice of the nearest and the second-nearest enemy.

The Paladin will only cast spells if he has not been Silenced and has a Casting Failure lower than 40%.
__________________
Click On The Image For BG2 Information

Land of the Psycho-moe
Dundee Slaytern is offline   Reply With Quote