HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Working Attack-based Melee-autocast?

07-24-2006, 03:19 PM#1
EveningStar
Hi,

I'm trying to make a melee-autocast spell which silences the target for 2 second upon every hit. The problem that I can't seem to find an auto-cast spell for melee units (with attack type normal). Can anyone help?
07-24-2006, 04:30 PM#2
Ice_Keese
You'll need to trigger it.
Try editing an arrow spell and then use triggers for the silence effect.
07-24-2006, 04:35 PM#3
StockBreak
The problem is that Poison Arrow (which has a buff to detect) doesn't work on melee units. You will have to use triggers to detect Autocast ON/OFF (for example a unit is issued an order with no target and issued order equal to "poisonarrows" or "unpoisonarrows" [ON/OFF]).

P.S: uh, Incinerate Arrow works on melee heroes, but it's quite bugged and the corpse explodes after death.
07-25-2006, 05:00 PM#4
EveningStar
StockBreak:

I tried your method, and it works perfectly after a lot of triggering. However, there is only 1 problem I cannot overcome: how do you detect that a unit has been silenced? The reason I ask is because when the autocast is on, but I'm silenced, I won't be able detect it via trigger and turn off the trigger so that I can get free "buffed" attacks without costing mana.

I know 1 solution is to check if the unit has all of the abilities that can silence but that seems stupid, anyone?
07-25-2006, 06:58 PM#5
oNdizZ
check if the unit has the buff Silence. or soulburn or whatever you use.
if you use GUI, then its a boolean condition. else, you should use the native directly, which is actually the "abilitylevelcheck" (GetUnitAbilityLevel()) where 0 is equal to that the unit does not have the buff.. obviously.
07-25-2006, 07:18 PM#6
EveningStar
yeah that was the only solution I can come up with; but it just seem so tedious!
07-26-2006, 01:39 PM#7
StockBreak
If you are not familiar with JASS you can Enable a periodic event when the unit starts attacking (let's say every 0.1 seconds) that checks if the target unit has the Silence buff.
07-26-2006, 03:19 PM#8
EveningStar
o I can assure you I am not incompetent in JASS... Again, what I don't like about this is that everytime I add a new ability based on silence, (for example Pacify, which silences and causes the unit to not be able to attack), I would need to add a new buffcode to be checked off on this spell. See where I'm going with this?