Aller au contenu

Photo

New nwn2 toolset user quesiton: creating dragons


  • Veuillez vous connecter pour répondre
7 réponses à ce sujet

#1
Lokan232

Lokan232
  • Members
  • 1 messages

Hi,

 

Ive dabled in the toolset here and there for years, but Im having trouble creating dragons, or in this case a dragon like NPC that fights in a way that, at least, makes some sense.

 

Sepcifically, I am trying to tool up a wyvern drake with a breath weapon.  A tail swipe would be very intereting, but Im not at all experienced in scripting.

 

First, I dont know how default breath weapons area handled.  I cannot find the script or field that tells the game that this NPC should have a breath weapon and which type (cold, fire, lightining, etc). How does the game know this dragon is a red, blue..etc?

 

Can I use this function to make a dragon "cousin" like a wyvern drake?

 

 

lastly, does anyone know of a good NPC builder tutorial that might dig into some of these types of things? Im even willing to try some scripting, if I can put in a tail sweep, but really Im just looking for the easiest way to make an NPC that makes some sense when it fights.

 

Thank you



#2
kevL

kevL
  • Members
  • 4 052 messages
it's not easy to make a dragon, you're looking at meddling with AI and other things.

eg, how do you tell the dragon it should do a tailsweep, or when it should use its breath weapon .... They didn't get Tholapsyx in the OC right (and that's not merely an opinion). It's a fair bit of scripting, and knowledge of when to hook what event where.

You could probably kludge (that's an opinion) something together from a stock creature, but there's no tutorials that i'm aware of. The link in my .sig 'Dragons in the OC' has fully functional dragons, I believe; maybe you'd like to poke around in it for strategy & tactics, although it's bound to be somewhat very confusing.

#3
kevL

kevL
  • Members
  • 4 052 messages
more:
 

First, I dont know how default breath weapons area handled. I cannot find the script or field that tells the game that this NPC should have a breath weapon and which type (cold, fire, lightining, etc). How does the game know this dragon is a red, blue..etc?


It's a SPELLABILITY, listed as "Dragon Breath <type>". Assign it at the same place you'd assign an NPC-caster its spells. But there's a pseudo-bug in the toolset where if more than 1 use is set, and the file is saved, opened, & resaved, the uses reverts to 1.

So dragons should rig up bInstant, bCheat casts ..... And it knows which elemental type to use by the referenced ImpactScript in Spells.2da (note: eventually i just bypassed assigning the Spellability altogether and instead placed calls to bCheat-cast the ability directly from the AI, calculating variables in the spellscript itself )

/i'm going mostly by recall here


ps. The appearance ingame is a property of its blueprint, Appearance

#4
Saralach

Saralach
  • Members
  • 18 messages

Bouncey Rock made a beholder a while back that has an attached AI script to make it fire certain rays. You could also try poking around in that, if the source is available.



#5
rjshae

rjshae
  • Members
  • 4 478 messages

Here you go: Bounce - Beholder



#6
Dann-J

Dann-J
  • Members
  • 3 161 messages

The annoying thing about Special Abilities (which include dragon breath weapons) is that there are often several different versions that all use the same display name in the ability list, but which use different scripts. Dragon breath weapons come under that category, since there are leftover NWN Shifter versions of them as well (which don't work well in NWN2). The bronze and blue dragon blueprints in the toolset use the incorrect versions.

 

 

I updated the dragon special ability scripts a few years ago so that they work a bit better, and included some NWN2 visual effects for those that lacked them (cold, gas, negative energy, paralysis and fear breath weapons, and an improved electrical breath effect).

http://neverwinterva...ability-scripts



#7
kevL

kevL
  • Members
  • 4 052 messages

The annoying thing about Special Abilities (which include dragon breath weapons) is that there are often several different versions that all use the same display name in the ability list, but which use different scripts.


right. Just getting those sorted out takes a fair bit of time ... ( i've gone through a lot of the spellabilities to give them unique names so i don't have to wrasstle with it later )

#8
Dann-J

Dann-J
  • Members
  • 3 161 messages

I've compiled my own list of duplicate Special Ability display names, which I frequently have to consult:

 

http://forum.bioware...t/#entry6305661

 

Darkness and Invisibility are the worst offenders.


  • GCoyote et 4760 aiment ceci