"good" archmage.

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

"good" archmage.

Post by stranf »

So I took the NPC-murderer-archmage script and copied it into a custom.dfn so I could have "good" NPC mages that aren't vendors.

I don't know what to set the AI to so that the mage will be "good" and still cast spells at enemies.

I set the AI to 5, which sends the mage after hostiles (same AI as a fighter), but he likes to wrestle instead of cast spells.

Is there any AI value that we can use that let's "good" characters attack with magic?
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

stranf wrote:Is there any AI value that we can use that let's "good" characters attack with magic?
Spellcasting in combat is not bound to the AI type. As long as the NPC has the SPATTACK, SPADELAY and MAGERY tags properly set he will randomly use spells.
Post Reply