• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Other line in a zinc trigger?

Status
Not open for further replies.
Level 9
Joined
Jul 10, 2011
Messages
562
hey guys...

im trying to implement this spell in my map and i changed the damage line to the following one:

I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetTriggerUnit(), true))

the problem is that the spell performs really nice but doesnt do any damage....so my question is whether i have to change the line to something else (maybe zinc-specific) to make it work.

hope you can help me :D


thanks in advance

greetz clapto
 
You have to edit the script itself. Change 'GetDamage' to:
JASS:
function GetDamage(integer lvl, unit cast)->real
        {
            return I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, cast, true)); /*deals damage each arrow*/
        }

Then edit the onDestroy method:
JASS:
method onDestroy()
            {
                xed.damageAOE(this.caster,this.fx.x, this.fx.y, GetCollisionSize(this.lvl), GetDamage(this.lvl, this.caster));
                this.fx.flash(FLASH_PATH); 
                ReleaseTimer(this.t);
                this.fx.destroy();
            }
 
Status
Not open for further replies.
Top