Ironworks Gaming Forum

Ironworks Gaming Forum (http://www.ironworksforum.com/forum/index.php)
-   Icewind Dale | Heart of Winter | Icewind Dale II Forum (http://www.ironworksforum.com/forum/forumdisplay.php?f=13)
-   -   RE: Paladin AI Script (http://www.ironworksforum.com/forum/showthread.php?t=23598)

Dundee Slaytern 12-03-2003 03:42 AM

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%.

kartetse 12-03-2003 04:58 AM

<font color="cyan">Cool, I'll try it! Do you have any other scripts?</font>

<hr align="left" noshade color=#FF3399 width=50% size=1>
kartetse

<font color="cyan">---------------------
do da do, kick da goo and stay outta da zoo...</font>

Xen 12-03-2003 02:22 PM

Dundee I can`t open your link.

Dundee Slaytern 12-03-2003 11:03 PM

Quote:

Originally posted by kartetse:
<font color="cyan">Cool, I'll try it! Do you have any other scripts?</font>
<hr align="left" noshade color=#FF3399 width=50% size=1>
kartetse
<font color="cyan">---------------------
do da do, kick da goo and stay outta da zoo...</font>

I have an Archer AI Script ready to go as well. It retreats back if an enemy gets too close and only melees as a last resort.

However, it is still in the testing stage. Once I have satisfactorily self-tested it, I will put it to the test as well in public. There is no better way to find bugs than to let others use your script. [img]tongue.gif[/img]

I have a partially completed Cleric/Ranger script, but I am having problems with it, because it causes the char to stutter. This same occured with the old Paladin script. The new Paladin script seems to have eliminated this bug though, so I am going to base the new C/R on the current Paladin script. Depressingly, this also means that this is the sixth time I am rewriting the C/R AI Script. :(

I do not know whether to laugh or to cry when it comes to the Mage AI Script. It works, oh yes it does, but then again... it can always be better. I just cannot bear to say it is complete... because I keep finding new ways of improving this montrousity (it is the largest script, due to the numerous spells in the game and targetting factors and scrolls and wands and ~ etc...).

By the by, the Paladin AI Script will also work for normal fighters, because it is basically my standard melee script that happens to cater to Paladins as well. The potion drinking will work no matter which char you use the script on.

---- ----

Xen, the link works fine. Just left-click on it.

kartetse 12-04-2003 02:30 AM

<font color="cyan">So far so good. I'll apply the script to my two cleric/fighters? One strategy though that I've employed and believe would be difficult to mimic using a script is to have my fighter's wait for difficult opposition while having my ranged attack pelt the monsters until they fall upon my fighters, from where the melee is joined.
[img]graemlins/starwars.gif[/img]

I'd love to try your other scripts when you're happy with them!</font>

<hr align="left" noshade color=#FF3399 width=50% size=1>
kartetse

<font color="cyan">---------------------
do da do, kick da goo and stay outta da zoo...</font>

[ 12-04-2003, 02:38 AM: Message edited by: kartetse ]

Dundee Slaytern 12-04-2003 03:30 AM

Quote:

Originally posted by kartetse:
<font color="cyan">So far so good. I'll apply the script to my two cleric/fighters? One strategy though that I've employed and believe would be difficult to mimic using a script is to have my fighter's wait for difficult opposition while having my ranged attack pelt the monsters until they fall upon my fighters, from where the melee is joined.
[img]graemlins/starwars.gif[/img]

I'd love to try your other scripts when you're happy with them!</font>

<hr align="left" noshade color=#FF3399 width=50% size=1>
kartetse

<font color="cyan">---------------------
do da do, kick da goo and stay outta da zoo...</font>

If you apply it to your Cleric/Fighters, the AI Script regarding Healing Spells will kick in as well, since both Paladin and Cleric share the same type of spells (Priest).

Currently... the AI Script you have makes the char only attack hostiles with melee if they are within 10' of that char. For comparison purposes, a Fireball has a 15' radius.

Xen 12-04-2003 12:54 PM

Dundee I still can`t open the page. Been clicking it for 10 mins now. :(

Dundee Slaytern 12-05-2003 02:02 AM

What errors are you getting? What browser are you using?

Xen 12-05-2003 01:58 PM

Quote:

Originally posted by Dundee Slaytern:
What errors are you getting? What browser are you using?
I use IE 5(6?) and i get the "The page cannot be found" message. Weird. I used to open your homepage anytime i wanted to...

Dundee Slaytern 12-06-2003 12:42 AM

Try this. Copy the shortcut (right-click on the link first), and paste the address directly in a new browser window.


All times are GMT -4. The time now is 01:07 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved