| 02-07-2004, 01:04 PM | #1 |
I had actually done quite a number of trigger-based spells, but this trigger somehow isn't working as what i wanted. Can someone help me figure out the thing i have done wrong in this following trigger? I manage to add mana back to the caster if theres no enemy nearby to the landing position when a blink-like ability is casted. But the strange thing is, this trigger doesn't think that any units are nearby even when i blink into a group of enemy units. ThunderBash Events Unit - A unit Finishes casting an ability Conditions (Ability being cast) Equal to Thunderbash Actions Set TempPlayer = (Owner of (Casting unit)) Set TempUnitGroup = (Units within 300.00 of (Target point of ability being cast) matching ((((Matching unit) is A flying unit) Equal to False) and (((Matching unit) belongs to an ally of TempPlayer) Equal to False))) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Number of units in TempUnitGroup) Greater than or equal to 1 Then - Actions Unit - Move DummyCaster instantly to (Target point of ability being cast) Unit - Change ownership of DummyCasterArray[1] to TempPlayer and Retain color Unit - Order DummyCaster to Orc Tauren Chieftain - War Stomp Else - Actions Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + 100.00) PLEASE HELP ME! Thanks all kind soul:( |
| 02-07-2004, 01:45 PM | #2 |
I can't see anything wrong with the trigger right now, but try using the Event "Unit - A unit starts the effect of an ability" instead. Worth a shot I guess. :) |
| 02-07-2004, 02:19 PM | #3 |
thanks for the try, i did that before, but it doesn't work, so i change it to 'finish casting' so that the position of casting unit will be checked only after it has teleports to a new location. T.T Sadly, no warstomp is casted when enemies is nearby. |
| 02-07-2004, 02:30 PM | #4 |
I'm not sure target point of ability being cast works with a no target spell like thunderclap. |
| 02-07-2004, 02:35 PM | #5 |
just do pick units in range of casting unit, it should work then |
| 02-07-2004, 03:11 PM | #6 |
right, thanks alot, i'll try it straight-away. but i wonder, if the new position of the hero who cast blink is equals to the point of ability being casted? |
| 02-07-2004, 03:17 PM | #7 |
We'll check the trigger by adding a seperate trigger or action that displays the number of units in tempunitgroup. That way you can see if thats the problem. Also, you may have this somewhere already but, make shure you have an action somewhere that sets tempunitgroup back to 0. If you can't figure it out just keep o replying. |
| 02-07-2004, 03:21 PM | #8 |
yah, i borrow the tempunitgroup variable, since the group reset after each of my other triggers, and the Set tempunitgroup = blaablaablaa will change the value each time the trigger is being called. i'm now trying to see if the position of casting unit will work or not. EDIT:ALRIGHT!!!! I LUV YOU GUYS!!!!!! ITS WORKING NOW! Thanks allot for your helps. |
