HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Detecting Auto cast spells

10-07-2006, 10:58 PM#1
GamesSmash
Does anyone know a way to detect auto cast spells??

For example, i make a ato cast fire-arrow-based spell that increase hp by 20 per hit or something. Anyone know how to do this?
10-07-2006, 11:57 PM#2
moyack
if you want to detect when the unit has casted the spell you should use something like this:
Trigger:
Your trigger
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Searing Arrows
Collapse Actions
Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + 20.00)
10-08-2006, 12:07 AM#3
GamesSmash
I don't think that works with auto cast unless u click on the spell and then click on a unit.
10-08-2006, 12:13 AM#4
moyack
in theory it must work, becuase it detects when the effect starts. Test it and tell me if it works :)
10-08-2006, 12:20 AM#5
shadow1500
It works for all auto-cast abilities except arrow auto-cast abilities, those are considered as an attack.
10-08-2006, 03:05 AM#6
Chuckle_Brother
For arrows you should use a generic damage system like the one Shadow wrote(can't remember where that can be found), Vex's system(found here), or my Generic Damage stuff(found in this tutorial).

With just a little thinking(conditions for the Arrows buff) you can make it do whatever you want.

Note: Arrows work flawlessly with Vex's/My methods, since an Arrow will override an Orb
10-08-2006, 03:52 AM#7
moyack
I had an idea. I don't know if it works:
Trigger:
Untitled Trigger 001
Collapse Events
Unit - A unit Is attacked
Collapse Conditions
(Level of Searing Arrows for (Attacking unit)) Greater than 0
(Current order of (Attacking unit)) Equal to (Order(flamingarrows))
Collapse Actions
Unit - Do your stuff here
10-08-2006, 04:33 PM#8
zeroXD
Use something like black arrows or something and detect when the target get the buff?
10-08-2006, 04:53 PM#9
martix
You can detect the order that turns on autocast, that way begins casting an ability would be A unit Is attacked, and starts the effect would be Unit takes damage...
10-09-2006, 01:25 AM#10
Chuckle_Brother
Yeah....I suppose my post went unread.

Thats what I was alluding to.