Warcraft III resources & community, 2003–2006 · archived

how to make this ability?

13 posts
#1

how to make this ability?

im trying to make this seemingly simple yet impossible ability based off of poison arrows, and all it does is it kills the unit with the poison arrow buff if its hp is below a certain set value.

but the problem is, with the ability on auto-cast, using JASS functions, there is no way to 'GET' the target unit with the buff.

and i dont want to use the awfully implemented 'a unit is attacked' event.

so how is this possible?
#2
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Black Arrow) Equal to True)) and do (Actions)


~The_Raven
#3
The_Raven
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Black Arrow) Equal to True)) and do (Actions)


~The_Raven


but doesnt that action put high strain on cpu? what if there are alot of units on the map, this checking is gonna take along time?
#4
I have never seen this cause noticable lag.

~The_Raven
#5
The_RavenI have never seen this cause noticable lag.

~The_Raven



okay but i have another problem? which event will trigger with the usage of the auto-casting ability poison arrows, BESIDES 'a unit is attacked'?
#6
Unit - A Unit Begins Casting an Ability
Unit - A Unit Starts the Effect of An Ability

Timer - Periodic Event

~The_Raven
#7
The_RavenUnit - A Unit Begins Casting an Ability
Unit - A Unit Starts the Effect of An Ability

Timer - Periodic Event

~The_Raven


no, a unit starts the effect or begins doesnt trigger with the auto-casting of poison arrows
#8
Then use a Perioic Event trigger.

~The_Raven
#9
How would I make a mass raise dead spell? I know i would need to use triggers, but im so confused. what do i need 2 do?
#10
Modify the Raise Dead spell to raise more units.

~The_Raven
#11
I didnt mean it like that, instead of having raise dead make 10 skeletons from one corpse, i meant having it raise 2 skeletons from every corpse around the caster, like animate dead, except skeletons
#12
I know that this doesn't need triggers. I think that there is a field for this in the Raise Dead ability and I know that there is one in the Spirit of Vengance ability.

~The_Raven
#13
thx Raven