| 03-18-2007, 03:52 AM | #1 |
Anyone know how I could make a spell that explodes a unit when it touches an enemy? I was thinking about the goblin land mines ability I just dont know how to add that to a unit... thanks in advance |
| 03-18-2007, 04:15 AM | #2 |
Wait wait wait, what are you talking about? So let me get this straight. You need a spell like Goblin Land Mine but you DON'T KNOW HOW TO ADD IT TO A UNIT. Ok, your helplessness inspires my curiosity. Are you using ROC or TFT? I'm pretty sure either one would work, though with possibly GAY effects in ROC. First of all, you should go to the G section of Abilities/Units. Or items. Then find Goblin Land Mines. Or perhaps Item Goblin Land Mines in item section. Then, right around the top of any unit in the OBJECT editor, there should be a field like Ability - Normal. Add. If you're using TFT, I suggest making a custom ability off of Goblin Land Mines. ...Ok screw that, I now understand your question. I'm pretty sure, that the answer is NO. Basing a unit off of the Goblin Land Mine and basing an ability off of LAYING Goblin Land Mines is your best bet. Besides triggers that check every single second if a unit is in the radius of a mine. NO. That would be gay. So yeah, two answers. Each for seperate situations. Useless. o.O |
| 03-18-2007, 04:36 AM | #3 |
You'd need to use the "A unit comes within range of unit" event, but in GUI it would get all wonky-jod. A JASS version could work fine, though. |
| 03-18-2007, 06:29 PM | #4 |
is there any way that someone could post something in jass then that I could use or at least so that I can go in the right direction I don't know jass very well |
| 03-18-2007, 07:00 PM | #5 |
Just do: Every .2 seconds Pick all units in range of (Your unit) and do If unit is (whatever conditions u wnat) Then do Unit - Explode picked unit |
| 03-18-2007, 07:40 PM | #6 |
Not MUI? |
| 03-18-2007, 08:19 PM | #7 |
then just do another group loop and use picked unit instead of (Your unit)? |
| 03-18-2007, 08:44 PM | #8 |
Code:
explode
Events
Unit - A unit comes within 200.00 of YourUnit <gen>
Conditions
Actions
Unit - Explode (Triggering unit) |
| 03-18-2007, 08:45 PM | #9 |
This should work; just change the range to change how close a unit must be to explode. If you're not using unit-types, set TempGroup[1] to units with a specific buff, instead. |
