Thread: RE: AI Scripts
View Single Post
Old 03-14-2003, 02:44 AM   #3
Dundee Slaytern
Ironworks Moderator
 

Join Date: June 10, 2001
Location: Pasir Ris, Singapore
Age: 42
Posts: 11,063
Quote:
Originally posted by Pirengle the BNM:
This new paladin script sounds like something I can use, so I'll go download it. [img]smile.gif[/img] But how'd you script the wand? Does it work the same as item usage?
Yes, it is used as an item. I scripted it so that the user will use it only on Mages and/or Clerics that are within range. If all goes well, the character will use the wand every two rounds on a Mage or a Cleric to try and disrupt their spells.

ADD] Oh, but as with all level 1-3 spells, if the target has more than 40% Magic Resistance, or has Minor Globe of Invulnerability active, the wand will not be used. Neither will it be used on invisible targets.

ADD ADD] Basically, I am trying to follow the rule of 60%. An attack must have at least a 60% chance of success before it is attempted. This applies very much so to save or else spells.

If an enemy is more than 50% resistant to the element, skip and try something else.

Healing Potions/Spells are not used unless every single healing point is used. So if Mr. Bleeding Gums has 50% HP, but his HP total( not HP left!) is only 12, he will not be healed.

[ 03-14-2003, 02:59 AM: Message edited by: Dundee Slaytern ]
Dundee Slaytern is offline   Reply With Quote