HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Why doesn't this work?

08-03-2005, 12:35 PM#1
image

This is the trigger and i want it to kill a unit that is under my crosshair unit but it does nothing and i can't work out what is wrong. Any help would be appreciated.thx
08-04-2005, 12:58 AM#2
Pheonix-IV
Its the set crosshair target. Change it to "Set CrosshairTarget = Target Unit of Ability Being Cast"

Also change the events to "Unit - A unit Begins the Effect of an ability"
08-04-2005, 08:58 AM#3
Anitarf
Quote:
Originally Posted by Pheonix-IV
Its the set crosshair target. Change it to "Set CrosshairTarget = Target Unit of Ability Being Cast"

Also change the events to "Unit - A unit Begins the Effect of an ability"
You can't be sure if that's what he wants. Maybe the ability fire is a no-target spell and the buff "targeted" is given by another spell. If that's the case, then all you need to fix is changing the "picked unit" in the has-buff condition to "matching unit".

And Pheonix is right, use "starts the effect of an ability" generic unit event, it's more reliable.
08-04-2005, 11:49 AM#4
image
Yes, sorry for not being clear, the ability base is thunderclap so the target is the caster meaning if i did that the crosshair would be killed and i can't think of a better abiility to use because you have to choose a target with other abilities rather than it just affecting nearby units. I will try using the starts the effect of an ability to see if that works but i don't think that is the problem as it triggers if i change the CrosshairTarget to a set unit and does the special effects no matter what.
EDIT: Didn't notice you said to change picked unit to matced unit hopefully that will fix it thx.
08-04-2005, 12:29 PM#5
image
I have tried those changes and still can't work out why it doesn't work so i've uploaded the file so you can see what's happening. Here's the file: Clicky
Thx for any help.
08-29-2005, 08:18 PM#6
image
bump ny ideas?
08-30-2005, 03:35 AM#7
drdlord
Set CrosshairTarget = (Random unit from (Units owned by Attackers matching (((Matching unit) has buff Targeted) Equal to True)))

this line looks for units with the buff targeted, but if you look in the object editor the fire ability doesn't give any buffs, reset the stats - buffs line in the object editor for the fire ability.
08-30-2005, 05:48 PM#8
image
Ah thanks now i feel stupid. I also needed a 0.01 second wait before the set crosshair target line to give the ability time to cast. Im also surprised i got the floating text to simulate bounty quite well by just guessing first time. Thanks ill put thanks in the updates for those few who play the map and the fewer still that read them.