Jump to content

Script: Weapon hit does all elemental damage


Thacker

Recommended Posts

Hello

 

I'm trying to make a simple weapon ability that deals only elemental damage on hit. I've Frankenstein-ed a script together based mostly on Might Blow and the impact damage from Fireball. Below is the relevant portion:

                float fDamage = Combat_Damage_GetAttackDamage(stEvent.oCaster, stEvent.oTarget, oWeapon, nResult, 0.0f);
                eEffect = EffectDamage(fDamage, DAMAGE_TYPE_FIRE);
                ApplyEffectOnObject(EFFECT_DURATION_TYPE_INSTANT, eEffect, stEvent.oTarget, 0.0f, stEvent.oCaster, stEvent.nAbility);

When used, this applies physical damage AND additional fire damage. I'd like it to apply ONLY fire damage. For example, if a normal hit deals 10 damage, I want the damage applied as 10 fire damage without any fire damage.

 

Is this possible? Any ideas?

 

Thanks!

Edited by Thacker
Link to comment
Share on other sites

  • 3 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...