HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Impale spell inquiry

11-24-2007, 03:59 PM#1
chobibo
Hello, thanks for anyone who would help.
I was wondering if I could detect units that are affected by the spell impale and do things to them.
An example scenario:
Caster casts Impale targeting a point (in the ground), then, units affected by the Impale get thier movement speed slowed by 50.

Is this possible? I'm a noob in both Jass and GUI so I could'nt figure this one out, the best thing I did was if the caster is castin on a unit, which is not what I was trying to do. Again thanks for any help or suggestion.
11-24-2007, 04:06 PM#2
Tiku
perhaps get units that get the buff from getting hit by impale? unless there is no buff for impale

okay:

Trigger:
Impale
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Impale
Collapse Actions
Collapse Unit Group - Pick every unit in (Units within 1000.00 of (Position of (Triggering unit)) matching (((Triggering unit) has buff Impale) Equal to True)) and do (Actions)
Collapse Loop - Actions
-------- Your Actions Here. --------
should work :P
11-24-2007, 04:10 PM#3
chobibo
hey tiku thanks I also thought of that solution but due to my lack of knowledge I failed LOL

Edit: +REP for the effort my friend lol. Thanks, seriously.
11-24-2007, 04:13 PM#4
Tiku
lol well i posted a trigger if you need it :P might work might not
11-24-2007, 04:23 PM#5
chobibo
Is there an alternative, I cant get this one to work. Thanks for any help.
11-24-2007, 07:42 PM#6
Pyrogasm
Dummy cast Thunderclap on the point.
11-24-2007, 07:51 PM#7
cohadar
A small thread steal:
Where can I find a tentacle model for impale?
11-24-2007, 07:54 PM#8
Pyrogasm
There's a unit that has a tentacle model. Servant of something I think.

Just scroll through the unit models and you'll find it.
11-24-2007, 08:04 PM#9
cohadar
No no, not the tentacle of faceless one I need the spike of nerubians impale.
11-24-2007, 08:19 PM#10
Tiku
its under the models of: buffs, in the "I" lettering section
11-24-2007, 09:11 PM#11
cohadar
Got it:
Abilities\Spells\Undead\Impale\ImpaleHitTarget.mdl
11-24-2007, 10:55 PM#12
Pyrogasm
That's not a tentacle, lol. It's a spike.
11-25-2007, 02:01 AM#13
chobibo
Hey guys, can you tell me how to code this:
Pick every unit within 1000 range of caster but pick only the ones that has buff
I got stuck on this one, cant determine what code to make. I need to filter the units and only pick out the ones with an impale buff.
Thanks pyro for the help but I want to test if this coding would do it.
Off Topic question: Is it hard to add a buff to a unit? I mean without using dummy casters to cast spells on the targeted unit.