This script is a modified version of the include file x0_i0_walkway. In order for it to work, you must recompile most of your creature AI files as local versions on your module. If you export the AI files and x0_i0_walkway from my demo, you'll be all set.
This script creates a way of allowing global walkwaypoints, however, they do not work as easily as with NWN1. You must indicate what transitions must be traveled through in order to reach the creature's next waypoint.
This is done by setting local strings on doors and transitions with the name wp_trans_## where ## is simply an incremental number from 00 on up. Set the string value of the variable to the tag of the waypoint that lies on the other side of the transition.
It really is too complicated to explain all here so check out my tutorial:
I should warn people, I'm not entirely sure this script still functions right. This project is on my list of things to finish.
I actually had an idea for an improved version of this. When the module loads, you could have a script go through every area identifying all the walk wakypoints. Then you could have that same script identify the doors that lead to those areas, and have the script apply the local variables to the doors.
It would be an intense search script that would be an n^2 process, but it'd only be a one time thing.
Anyone having problems with this? I notice there's not many downloads :\ I guess with scripted waypoints people are just ignoring the global walkwaypoint problem or designing their own solutions.
If you're wondering why the imp just sits there in front of the door, try giving him the key, he should then open it and walk through. I now realize that I didn't make this very apparent in the demo module.
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