Author Topic: Damage type and visuals of Dragon Breath  (Read 390 times)

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Damage type and visuals of Dragon Breath
« on: November 02, 2014, 10:53:47 pm »


               

In my attempt to enable other Dragon Disciples playable apart from red ones, I wanted to modify a Dragon Breath script to do the following:


 


-recognize the type of Dragon Disciple casting it - I did this by providing DDs with wings based on their dragon and using GetCreatureWingType


 


-change damage type, saving throw type and visuals based on the above; so that, for example, a silver dragon disciple would prompt variables: DAMAGE_TYPE_COLD, SAVING_THROW_TYPE_COLD and VFX_IMP_FROST_S, respectively.


 


It didn't seem difficult in theory, but for some reason, I encounter problems with visuals.


First of all, no visual apart from the default Dragon Breath one seems to work. I tried the ones from shifter's wyrmling breaths, to no avail. Second of all, I can't seem to get rid of the little fire visual that comes from the caster's mouth when he uses the feat. It appears even when I leave the feat's script empty (that is, "void main() { }" ), which frightens me and makes me believe that a part of this feat is hardcoded, so I won't get to have much fun with successfully modifying it.


 


Well, long story short - is achieving what I intend to achieve even possible with the default Dragon Breath feat, or would I need to create a new custom feat altogether? Anyone tried messing with it?



               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Damage type and visuals of Dragon Breath
« Reply #1 on: November 03, 2014, 12:08:28 am »


               

Are you using the following?


 


script: X2_S2_DiscBreath


feat.2da reference: 965


spells.2da reference: 690


 


The visual for the breath comes from spells.2da column "CastHeadVisual", and is supplemented by column "CastSound".  There can only be one per spellID (and only one spellID per featID), so what you are suggesting would require multiple feats.



               
               

               
            

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Damage type and visuals of Dragon Breath
« Reply #2 on: November 03, 2014, 08:10:28 am »


               


Are you using the following?


 


script: X2_S2_DiscBreath


feat.2da reference: 965


spells.2da reference: 690


 


The visual for the breath comes from spells.2da column "CastHeadVisual", and is supplemented by column "CastSound".  There can only be one per spellID (and only one spellID per featID), so what you are suggesting would require multiple feats.




Yes, these are what I use.


I see. That's quite a lot more problematic than I initially believed it would be.


               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
Damage type and visuals of Dragon Breath
« Reply #3 on: November 13, 2014, 07:10:39 am »


               


Yes, these are what I use.


I see. That's quite a lot more problematic than I initially believed it would be.




 


Yeah, you need individual feats per dragon breath visual you want, sadly.  I made a system to do it in a module of mine.  Bit annoying but it worked out, can show it to you if you want.



               
               

               
            

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Damage type and visuals of Dragon Breath
« Reply #4 on: November 13, 2014, 11:17:40 am »


               

Thanks, MM, but I solved this problem.


 


If anyone is interested, I simply modified original dragon breaths (not shifter ones) to have DC and damage dice set differently if the caster has "ddbreath" variable set to 1 (and dragon cry was also restricted, so that DDs wouldn't shout while using their breaths).


 


Then I configured the DD breath script to make its caster instant cast one of the previously mentioned breaths, depending on their wings.


 


Works pretty well.