| 01-30-2003, 10:37 PM | #1 |
Guest | I've been struggling making an event that detects when an order is issued for a spell. Tried this with dispel, inferno, stormbolt and massteleport. Used the following triggers or variant: Event: A unit owned by Player X is issued an order with no target (also tried target as a point and as an object) Condition: IssuedOrder = Order(inferno) Do I have to "stop" the spell effect or something to get this working right? This has been driving me nuts. I figured out a work around for a teleport spell I was trying to make, but I have other trigger special effects I want to add to some new spells and I need to be able to create this event. Hmm. Might help to find a map that does this where it works.... |
| 01-30-2003, 10:40 PM | #2 |
Guest | Oh. On similar note.... Is there any way to "look up" the value of one of the data fields in the AbilityData.slk using an trigger action? In other words, look up the value in dur1? I was thinking that I might be able to convert a string or something since wc3 seems to recognize the string <alias, datafield>. |
| 01-30-2003, 10:43 PM | #3 |
You can do it like this: Events: A unit owned by (whatever) is issued an order targeting an object Conditions: (Issued order) Equal to (Order(SPELL NAME HERE) Any other conditions you want, and you would probably want a unit type comparison so that other units do not use this trigger when using that spell. Actions: Whatever you want. This has worked for me, and should work fo ryou. |
| 01-30-2003, 10:44 PM | #4 |
you said you want to attach extra special effects, as in have the Inferno or whatever work as normal and then some? If that's the case then don't order the person to stop. If you want to do something totally trigger based, however, then do order them to stop and that should stop them from casting the spell, from what I've heard. |
| 01-30-2003, 11:47 PM | #5 |
