| 10-30-2003, 07:13 PM | #1 |
I need to make Neutral Hostile units cast an attack ability that is trigger-enhanced. Doesn't matter what ability I base it off, as long as the Neutral Hostiles will "know" to use it on their enemies. Problem is: how do I let the trigger know what unit has been hit with this ability? - There is no "Target Unit of Ability being cast" function. - Other solutions to similar problems have involved recording the "Target Unit of Issued Order" in the "A Unit is issued an Order targetting a unit" event and then playing it back in the "A Unit finishes casting an ability" event. I can't do this, because the units casting the ability will Never be issued any orders by the computer or by any player - they're Neutral! - Someone mentioned that WE: Unlimited has this function... If so, there must be a Jass function for it, right? Could I custom-script this? Thanks for any help you might be able to give... this is quite worrisome. // Ligature |
| 10-30-2003, 08:58 PM | #2 |
Have two triggers. One watches for the order, and sets a variable to the target. The other watches for "Starts the effects of an ability" and then the actions do stuff to that variable. |
| 10-30-2003, 09:15 PM | #3 | ||
Quote:
Quote:
|
| 10-30-2003, 09:19 PM | #4 |
Fine, fine, I'll actually read your post. Frankly, that's the only way I've ever figured how. Are you *quite* certain that neutral units do not receive orders? Neutrals are computer controlled; they therefore receive direction from them. If it turns out they somehow operate on autopilot, then perhaps you could use some other computer controlled team besides Neutral Hostile? |
| 10-30-2003, 09:35 PM | #5 |
I've set up "order catcher" triggers, neutral hostile units DEFINITELY recieve orders (ie move, priestheal, innerfire...) |
| 10-30-2003, 09:46 PM | #6 |
Really? I set up an order-catching trigger and I didn't get anything from this guy... hm hold on I'll get back to you guys. Thanks for bringing this up. |
| 10-30-2003, 10:05 PM | #7 |
Ok, sorry everyone.... My order listener wasn't registering anything because the Neutral Hostile unit wasn't casting abilities: he was only attacking... I assumed that if ability orders showed up, attack orders would too, but apparently not. Interesting to know anyway. Special apologies to Biflspud, who gave the correct method only to be rebuked. Sorry about that man. And many thanks to All. |
| 10-31-2003, 03:19 AM | #8 |
I dashed that one off, thinking it was the same question you teased me for triple posting about. And it sorta was, but I didn't read all the way down the message to get that information where you said it didn't work. So, hey, we both learned something. ![]() Edit: Yeah, I noticed that about attack, too. Computer controlled units never seem to be ordered to attack, yet they DO count as "attacking units" for triggers that watch for them. Odd. Unless commanded to attack a nearby unit, they're not actually ordered. Come to think of it, I don't think targets in radius are technically ordered to be attacked. Sort of a peculiar way of unit commands Blizzard has. Units that don't have orders aren't ordered to stop, either. |
| 10-31-2003, 09:20 AM | #9 |
try the usual... event : Unit begins an effect of spell condition: Order = <spell order> action: blah blah.. |
| 10-31-2003, 09:25 AM | #10 |
Actually I'm pretty sure that human units dont get attack orders either when they automatically aquire targets, including when they help a nearby unit that is under attack. The main non-skill order creeps get is the "move" to tell them to stop chasing something. |
