Skip to content

Jasperre’s AI

Jasperre's AI
I worked on AI for Neverwinter Nights, under the guise of Jasperre, where I managed to get a rewrite of the NPC battle AI done. Still said to be competitive today, despite me not updating it for a while, I was working on a Neverwinter Nights 2 version but never got anywhere – see below.

The newest (and least buggy) version of the AI is 1.4 beta 3, which fixed some logic errors and restructured part of the AI.

Download locations:

Quick changelog on the beta’s:

  • Fixes logic errors that I found.
  • Fixes some bugs in the code, most detailed at the forums.
  • Beta 2: Quickfix for something in beta 1.
  • Beta 3: Fixed bad bug with beta 1 and 2 causing creatures to not properly cast spells.
  • Beta 3: Fixed logic for polymorph spells. People can have advanced crossbow feats and now be turned into trolls any more.

I used to have a Neverwinter Nights Guild for this project (linked here for those who uses the wayback machine). I didn’t really feel the need to back this up or constantly keep acting on the reminders. If you have any serious feedback, comments or anything, post them below :)

BePower Update

Here is a project I’ve not yet checked out but looks to fix a ton of errors in my code. Thanks to BePower it appears! I have no idea what’s really changed under the hood, apart from fixes, but a glance looks good and I’m happy for people to rip it apart – other projects have existed based on my code. I am not going to officially incorporate this, for two reasons: 1. BePower is awesome and deserves full credit for the separate update. 2. As I say below, I don’t like some parts of the code and intended to rewrite them basically entirely (with similar functionality) meaning this kind of fix would have been moot I hope! :)

I actually only realised after writing the above he’s the same person who prompted me to re-do this page…*slaps forehead* thanks dude :)

Future Updates

I stopped working on a new version (either a proper 1.4 update to add to the vault – after all I called the last release “Least buggy”, or a full rewrite for NWN2) due to, basically, getting annoyed at Neverwinter Nights 2’s poor scripting support – ie; bugs everywhere (yeah, saying there were bugs got me nowhere), meaning the AI would actually be harder to write, or just more dumb, then the original game. There was no additional functionality, and a good-as update Henchmen AI mod was, truly, for combat AI probably just as good as a custom-made item. Cest la vie!

It’s tempting to go back to this and continue the newly revamped project I was working on. This would be nothing done soon, and the game is so old it isn’t like there is a huge demand for it, but it might satisfy my urge to rewrite the thing so there is no huge spell routine (which picks a spell to run). I will also be checking out Dragon Age, which has a similar pseudo-turn-base feel with parties of monsters – and I expect, the same kind of scripts that ran on Neverwinter Nights 1! I’ll have to see :)

{ 2 } Comments

  1. BePower | November 23rd, 2009 at 11:06 | Permalink

    Man, your AI is a piece of art. Why didn’t you post it in the vault?
    Thx anyways for having it somewhere :)

  2. Andrew Armstrong | November 30th, 2009 at 18:19 | Permalink

    It is on the vault (although my Guild I let lapse and had no worthwhile things worth saving except for some feeling of self importance). It is only the 1.3 version however:

    http://nwvault.ign.com/View.php?view=Scripts.Detail&id=2108

    Maybe I should update it to the 1.4beta3 version. Hmm…

Post a Comment

Your email is never published nor shared. Required fields are marked *