Ever thought the powerful and magnificent beasts that are dragons seem a bit... well, lame?
The main reason for this is that in NWN, dragons lose one of their greatest abilities - flight.
Though the NWN engine won't support true flight, this is a set of two AI scripts which will make dragons fly about a bit using the appear and disappear animations, giving players a more wide-ranging and varied combat.
To use, simply set the following variables on your creature:
X2_SPECIAL_COMBAT_AI_SCRIPT - This should be "bd_ai_dragon" for dragon combat, and "bd_ai_flyby" for creatures which you want to fly about but not have thier other abilities run.
FlybyStompPower - If this is greater than 0, the creature will deal this many d6s of damage to those around it when it lands (Reflex save halves etc). I use 4 for adult dragons.
FlybyInfrequency - If you are using "bd_ai_flyby", you can increase this (up to 5) to decrease how often your creature uses its flight. A value of 2-3 is suggested for your average winged creature.
If using "bd_ai_flyby", the creature will only fly to foes (and thus this works best on melee creatures). If using "bd_ai_dragon", you will need to place down waypoints tagged "WP_DragonCombat" and "WP_DragonCombat2" (I use the former for an outer ring and the latter for an inner ring) which the creature will fly to.
A modified version of "nw_c2_default9" which will make the standard NWN Succubus, Summoned Succubus and Erinyes creatures will use "bd_ai_flyby" in combat (see Notes.txt inside the zip)
By request: Overridden versions of "nw_ch_default9" and "nw_c2_dropin" and a copy of "bd_ai_flyby" (in .NCS form as well as .NSS) which will, if placed in your override folder, cause Succubi, Erinyes, Dragons, Wyrmlings, Wyverns and Mephits to use "flyby" tactics (you may wish to tweak these). You can also copy/paste these into your module(s).
Note that if these break combats in the OC or anything, it's considered "Not My Fault" (i.e. use at your own risk). Enjoy.
If I remember correctly, the dragons will only use waypoints in their own area, so if you have two dragons in different areas everything will be fine. If you have two in the same area, they will use the same waypoints as each other.
The override scripts are just an alternative version of the core ones. If you import the modified OnSpawn script (the one in Dragon_Combat_Spawn.zip, above) then flying creatures should use the new AI in that module without need for the override. _________________________ In production: The Dragon Dynasty All my other stuff
How easy is it to set it up to work for multiple dragons? I mean the advance tactic.
I would like to make several dragon instances that use this advance tactic, but if the waypoint are the same.. some dragon could disappear and appear in a whole different area.
Can I also easily use this on some default nwn creatures without using the override version?
I dont mind customizing some of the scripts in the creature events.
What do you think?
Posted by Nizeil at 2011-01-07 05:05:17 Voted 9.75 on 01/07/11
.... _________________________ It's not important what you achieve in your life. What is important is that what you leave behind when you die.
It's unlikely to, it's just a disclaimer really ;-)
The only way you might have problems would be if you used these in some mod where, say, you had to fight one of these foes at range, or one of them wasn't supposed to leave a certain area or something... like I said, it's unlikely, but I can't predict all possible situations that might crop up, so there's a very small chance some minor bug might occur, that's all. Obviously, this only applies to the override version. _________________________ In production: The Dragon Dynasty All my other stuff
OK the override version is up, but it's only had limited testing so it's considered unsupported as far as breaking combats in other modules goes (though I think it should be fine). Currently it'll only work on the creatures listed, but I think that covers most of what you'd want to use the flyby tactics. It also doesn't give the dragons the advanced dragon combat tactics because that requires waypoints, but they will fly over and stomp on you and things. Let me know if it works OK, anyway. _________________________ In production: The Dragon Dynasty All my other stuff
If you included both the over-ridden OnSpawn script and the AI scripts in your override it would probably work, so I guess I could package that up for you. The full dragon combat wouldn't work though since it requires waypoints (something I forgot to mention originally). _________________________ In production: The Dragon Dynasty All my other stuff
Posted by KENLAMELLA at 2010-02-15 10:07:13 Voted 10.00 on 02/15/10
It's worth a ten now! Great scripts for builders! Well done my friend, and I don't mean my mutton. :) _________________________ Farewell and a long farewell it shall be. Some of us are not destined to meet again.