| 09-16-2003, 08:30 PM | #1 |
Well i want it so when u cast water element it deals 300 dmg to targets in range of summoning unit well it damages the enemy but it also damages me and i only want it to damage the enemy this is what i tryed doing Event: Unit - A unit owned by Player 1 (Red) Spawns a summoned unit Condition - none Action: Unit Group - Pick every unit in (Units within 300.00 of (Position of (Summoning unit)) matching (((Picked unit) belongs to an enemy of (Owner of (Summoning unit))) Equal to True)) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + -300.00)) someone help me plz |
| 09-16-2003, 08:45 PM | #2 |
change summoning unit to casting unit. or you could just change it to 'matching (((Picked unit) belongs to an enemy of Player 1))) Equal to True)) |
| 09-16-2003, 09:20 PM | #3 |
I tryed everything and it still didnt work it still keeps selecting the summoner and doing damage to him |
| 09-16-2003, 09:24 PM | #4 |
Ah, I have an idea. Use a trigger to give the summoned unit an ability based of War Stomp with no mana cost or graphics. Then, force it to use the ability and then remove the ability. That should work, and it won't harm friendly units. Oh, and you ought to set duration to 0 otherwise unit's will be stunned. |
| 09-16-2003, 09:28 PM | #5 |
nice but i dont think it would work because im making a nintendo arena map and this skills for megaman its gona shoot 3 blasts of energy and each will do 300 dmg :) |
| 09-16-2003, 09:31 PM | #6 |
ok. sorry, but it looks like your stuck then. |
| 09-16-2003, 09:37 PM | #7 |
np thx for your help i guess itll be a suicide skill lol |
| 09-16-2003, 10:29 PM | #8 |
Unit Group - Pick every unit in (Units within 300.00 of (Position of (Summoning unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Summoning unit))) Equal to True)) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + -300.00)) I changed the picked unit to MATCHING unit after the matching part. This should solve the issue but if it doesnt please post the map and ill take a quick look. Good Luck. |
| 09-17-2003, 01:08 AM | #9 |
thx very much :) it works perfectly now |
| 09-17-2003, 01:14 AM | #10 |
You might want to change it to - 300 instead of + -300 because I heard something about that can cause problems. |
| 09-17-2003, 02:01 AM | #11 |
nope , thats the only way u can do it and i got no errors yet |
