Page 1 of 1

Ranged item trigger/ability

Posted: Mon Mar 30, 2009 5:40 pm
by ikillforeyou
Hi, i've been recently working on a bow item.. this is what i have so far
i have an attachment (unimportant)
i have a trigger for the attachment (also unimportant)
And i have a bow item

What i want is to have the orb of fire fire spell thingy that can attack ground aswell, is there a possible way to do this? Thanks.

Refresh, here, i have figured out some of them
Art-Projectile art=Archer/hypogryph rider Etc

Stats-Targets allowed Ground, air, ward (this is what it is normolly)

so how do i make it so the unit that picks up the orb of fire has ranged attack vs ground aswell?

Re: Ranged item trigger/ability

Posted: Mon Mar 30, 2009 9:00 pm
by 3ICE
t_uni Unit - Replace (triggering unit) with "The Same Unit But With Ranged Attack Enabled".

Re: Ranged item trigger/ability

Posted: Thu Apr 02, 2009 11:13 am
by ikillforeyou
there has to be another way then that like in chlw (Custom hero line wars) there is an ability called eagle eye that makes you have added range.. but i dont think its plausible for them to make like 50 other heros (There is 3 levels of the ability) just for one ability, dont you?

Re: Ranged item trigger/ability

Posted: Fri Apr 03, 2009 12:07 pm
by 3ICE
No, its triggered in hlw like this:
Create a dummy ability that players can learn
Create an Upgrade (tech) that will actually increase sight range in the background.
Write some jass.

Listen to the "Unit learns an ability" event: TriggerRegisterUnitEvent(t,u,EVENT_UNIT_HERO_SKILL)
Translate ability levels into integers with GetUnitAbilityLevel()
Then update the level of Range-Tech: SetPlayerTechResearched(p,'tech',x)

p.s.: I didn't actually look at how they did it in hlw, but the way I described above would be the method of preference for me.