• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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