| 04-11-2007, 08:25 AM | #1 |
Hey, I'm looking for a condition that checks if a spell is on autocast. It might be me dreaming or I'm crazy, but is there a way to check if a spell is on autocast? Say Divine Protection is on autocast, I want to be able to check if it's on autocast so that I can fire some dummy cast abilities. I'm looking for an answer to this in GUI. Thanks in advance. |
| 04-11-2007, 08:59 AM | #2 |
i think its impossible to detect whether a unit has autocast enabled or not |
| 04-11-2007, 09:02 AM | #3 |
=/ Well... I would like to know how... |
| 04-11-2007, 09:35 AM | #4 |
Detect when a unit is issued an order that autocasts, for example, 'immolation on', then set an integer variable to 1. Detect also when a unit is issued an order to stop autocast, like 'immolation off', then set the integer variable before to 2. Then all you have to do is create the trigger with the events and the condition for that should be that the variable is 1(immolation ON) else do nothing. |
| 04-11-2007, 10:38 AM | #5 |
=/ That's... a whole set of new triggers all together but anyway, it should work. |
| 04-11-2007, 10:59 AM | #6 |
*cough* rep *cough* |
| 04-11-2007, 11:39 AM | #7 | |
Quote:
I don't mean to be mean, nasty and/or cruel, but I give rep to those who actually answered the question... |
| 04-11-2007, 11:40 AM | #8 | |
Quote:
If you have to ask for rep, you do not deserve it. Period. And that condition simply does not exist. There are neat "tricks" for certain types of autocast abilities, but you cannot just check if something's autocasted or not. |
| 04-11-2007, 02:47 PM | #9 |
you can detect the order, and store to a boolean variable true or false, thus letting you know if its auto casted or not, so i other words, basically what toink said |
| 04-11-2007, 02:51 PM | #10 | |
Well I did answer him, and look emjlr said you can detect the order so I'm right I guess.. Quote:
You don't have to be so serious, I was being sarcastic sheesh. Get the fuck over it, srsly I've rid my pc of all those ToB skins. Don't act all emo on me ![]() |
| 04-11-2007, 03:18 PM | #11 |
immolation has no autocast... |
| 04-11-2007, 03:20 PM | #12 |
That was just sorta an example. Ok, let's use phase shift, if the player right clicks it, the unit is given the order 'Phaseshifton' Detect that and set a boolean variable to true. If he right clicks it again, making it not autocast anymore, the unit is given the order 'Phaseshiftoff' detect that again and set a boolean to false. You can use that boolean to know if it's autocasted. |
| 04-11-2007, 03:30 PM | #13 |
But he can use the ability manually altough autocast is switched on ..so it doesnt work |
| 04-11-2007, 03:32 PM | #14 |
It has a different order string when used manually or with left click. It gives it the 'Phaseshift' order not the 'phaseshift on' or 'phaseshift off' |
| 04-11-2007, 03:37 PM | #15 |
i mean ...when phaseshift autocast IS activated..you could use it by leftclicking it..and with your "system" would tell it was autocasted |
