Jump to content

Recommended Posts

Posted (edited)

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
  • 3 weeks later...
Posted

For what it's worth I fixed my own problem. Since I based it on Might Blow, I forgot to delete a portion of the script immediately below the above quoted that was applying the combat result damage as pure physical damage.

  • Recently Browsing   0 members

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