1.23 patch is required for this code to work, due to new functions like GetIsLocationValid().
===================================
WHAT IS IT ?
===================================
Combat AI uses nwnx plugins by GrinningFool, which also provided a large part of the system's design.
In a few words, it is as spawn system based on the idea of a "controller" handling a whole team which shares information and morale.
===================================
HOW DOES IT WORK ?
===================================
It uses party level, delay and time of the day to decide if spawning occurs when a PC enters a trigger.
The builder can set a "Fear Factor" for the team, as well as stackable "traits" for each team member ( Boss, Coward, Archer, Caster and more ). Each member receives also a min/max amount, a CR and one or more (randomized) waypoints to spawn by.
The encounters then behave as a team, share targets, morale, following their own role. They flee to a waypoint or randomly.
XP can be distributed when they flee, and it is possible to have a team reinforcing the other.
The use of unique heartbeat and sometimes simplified behaviors as well as other
===================================
WHAT ARE THE CONS ?
===================================
For now, it is only available for PWs using NWNX, but hopefully some day we can convert it for SP modules.
It is not something you can use with another spawning system.
It is not yet really simple to use, as you need to write lines mixing bitwise variables with ResRef strings.
===================================
WHAT'S NEXT ?
===================================
Depending on the success of this system, custom magic behaviours, team strategies and other subsystems might be added.
Hopefully, a port of this system to SP module will be possible.
===================================
REPORTS AND FEEDBACKS
===================================
Feel free to test and report here.
You might as well post on the Khalidine Forums Link
Khalidine will be Beta soon, so you will be able to test it there very soon ;)
===================================
CONTENT IP
===================================
Most code libraries appear courtesy of GrinningFool.
Thanks to Clement Poh for inc_vectors.
Thanks to D. Cambell for autobuff.
The Khalidine's map "King's Hills Road" appears courtesy of Fizzbang, Lead Area Artist @Khalidine.
10 - A Masterpiece, Genuinely Groundbreaking 9 - Outstanding, a Must Have 8 - Excellent, Recommended to Anyone 7 - Very Good, Deserves a Look 6 - Good, Qualified Recommendation 5 - Fair, Solid yet Unremarkable 4 - Some Merit, Requires Improvements 3 - Poor Execution, Potential Unrealized 2 - Very Little Appeal 1 - Not Recommended to Anyone