HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ability Being Cast etc

12-29-2003, 02:15 AM#1
Xinlitik
Just so everyone knows... the new ability being cast and target unit of ability being cast are not limited to the trigger theyre in. They're like the (Last created unit) one. So, be careful when you use these after a wait. I had them in a loop with a .01 second wait and they still got messed up b/c of casting computers. Anyways, just make sure you use variables instead of these after a wait.
12-29-2003, 09:47 AM#2
MadFunk
EVENTS
A unit begins casting an ability
CONDITION
(Whatever)
ACTIONS
Set TempAbility = (Ability being cast)

:)
12-29-2003, 07:42 PM#3
Vexorian
That has no sense (neither your post nor the other guys') those are natives, they are not globals (like every last created .... is a global variable - Just like a gui variable like Madgui's "Solution". They *Should work *
12-30-2003, 03:02 AM#4
Xinlitik
Quote:
Set TempAbility = (Ability being cast)



I know. :) I'm saying that you cant use those after a wait because any spell can trigger them.


Vex, they "should work" doesnt mean that they do work. They work fine... before a wait. Everything before the wait is happening at about the same time. After that, another spell can become the (Ability being cast) etc. I know this for a fact.. I tested it out with a spell. If another spell was cast, its target became (target unit for an ability) for a seperate spell's trigger after a wait period (it was cast duirng that period of wait).