| 11-09-2003, 07:56 PM | #1 |
Hi...maybe u know the egg doodad (in dungeon i think...) I want a heroskill with which i am able to place eggbombs. They explode after several seconds and deal damage to enemy units in the area around the egg... any clue how to do this? This skill shall have multiple levels.... (heroskill) |
| 11-09-2003, 07:59 PM | #2 |
Yes. Easy. Make a ward skill, then set the duration to the time you want until it explodes. Make a trigger that looks like this Code:
Events - A Unit dies Conditions - (Unit type of (dying unit)) equal to Your Unit Actions - Pick Every Unit in 500 radius of (dying unit) and do set life of (Picked Unit) to Life of (picked unit) - 50. There you go. Your unit, is a ward that looks like an egg sack. |
| 11-09-2003, 08:02 PM | #3 |
Wow ! That was fast.... ^^ thx a lot |
| 11-09-2003, 08:03 PM | #4 |
No problem, always glad to help. Though for future reference, instead of spreading your questions over 3 posts, use only 1. I really don't care, but some of the mods do, cause it clutters up the forums. ![]() |
| 11-09-2003, 08:05 PM | #5 |
Make a unit with the AOE damage upon death ability and give it a 5 seconds duration Edit: whoa when I started to type this post the guy didn't get any answer |
| 11-09-2003, 08:05 PM | #6 |
His works, too. Damnit! Why do I always try and complicate things with triggers!? :( |
| 11-09-2003, 08:14 PM | #7 |
oh ok.... in future i ll make one thread with all of my questions.... i am working on a big project...and i am already pretty far.... it shall be a mixture of rival nations, tides of blood, and insel-war(nobody knows that)....and it plays in the starcraft dimension .... ^^. ... at the moment i am working on the heroe skills.... these skills are so damn hard to make..... my triggers get more and more ^^ ....btw.... thx for the help ^^ |
| 11-09-2003, 09:04 PM | #8 |
uh ok... ur triggers work perfectly...thx a lot for that...but how can i make that the explosion just harms the enemy units? ...EDIT: never mind... i ve solved the problem :D |
| 11-09-2003, 09:05 PM | #9 |
Use Lord Vexorians thing and select only enemy units... For mine, here's what you do. Pick every Unit in 500 of (Dying unit) matching Owner of (Matching unit) not equal to Owner of (Dying Unit) |
| 11-09-2003, 09:08 PM | #10 |
That would hurt allies too... bad... |
| 11-09-2003, 10:40 PM | #11 |
Ok. Units within 500 of (Position of (Triggering Unit)) matching (((Picked unit) belongs to an enemy of (Owner of Triggering Unit)) Equal to True) <Unit Group - Pick> <Units In Range Matching Condition> - (500) - Unit - Position of Unit> - - Triggering Unit - <Boolean Comparison> - - <Unit - Unit Belongs To An Enemy of Player> - - - <Picked Unit> - - - <Owner of Unit> - - - - <Triggering Unit> Heh, hope it helps. |
| 11-09-2003, 11:19 PM | #12 |
It's never a very good idea to use triggers to just plain reduce life like that, since it won't give you any sort of credit for the kills. Better to do it as simple as possible: Base the spell of inferno to get an area-of-effect circle, and summon a different unit for each level. I'm attaching a map in which I did this: All you'd need to do to adapt my abilities is to replace all instances of 'Magical Bomb' with 'Egg Bomb', set the damages and other stats to what you want and change the models. No triggers needed, although I used one to get a better-looking explosion. |
| 11-13-2003, 03:52 PM | #13 |
Thx for the help guys.... i made it with the landmine skill and just used triggers for the explosion ^^ |
