| 07-20-2003, 12:28 AM | #1 |
I can't get this targeted spell trigger to work.. Rainbow Spray Select Events Unit - A unit Is issued an order targeting an object Conditions (Issued order) Equal to (Order(forkedlightning)) ((Unit-type of (Ordered unit)) Equal to Illusion) or ((Unit-type of (Ordered unit)) Equal to Illusionist) Actions Set CSRegion[6] = (Region centered at (Position of (Target unit of issued order)) with size (100.00, 100.00)) Rainbow Spray Actions Events Unit - A unit Finishes casting an ability Conditions ((Ability being cast) Equal to Rainbow Spray ) or ((Ability being cast) Equal to Rainbow Spray (ill)) Actions Unit - Create 1 Caster M1 for Player 4 (Purple) at (Center of ACastZone <gen>) facing Default building facing degrees Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Drunken Haze (Random unit from (Units in CSRegion[6])) Unit - Add a 3.00 second Generic expiration timer to (Last created unit) In this case, the Wisp is created, but doesn't cast its spell. Basically this spell is a forked lightning + drunken haze, and the Wisp is supposed to haze a random unit in the area if any units are still alive. The Wisp's spell doesn't have target restrictions (air, ground, neutral) and if I manually make it Drunken Haze, it will Drunken Haze any unit I pick immediately and without question. (Range 99999, mana cost 0, etc. etc.). The order string is correct as well. So I'm not sure why the wisp isn't targeting a unit. My spells that target the caster itself work, so I'm thinking its some sort of problem with the trigger. Any one know what I'm doing wrong? |
| 07-20-2003, 03:52 AM | #2 |
okay, try this... Go into the ally priorities properties menu under scenario, and for every enemy of player 4 pick *none for their pritority. For some reason if this is set to high summoned units cont cast spells on units of other teams or forces if this isn't set. I had the same problem myself. |
