| 10-13-2004, 10:26 PM | #1 |
Here's the deal. I want to create a unit that can be attacked with the Unit - Issue Order Targeting a Unit action, but unattackable by enemy units, therefore it doesn't die until I attack it with the Unit - Order Unit to Attack Unit trigger. |
| 10-13-2004, 11:06 PM | #2 |
Nevermind.. solved the problem by creating the unit for Neutral Passive |
| 10-18-2004, 12:23 AM | #3 |
Well.. making it a Neutral Passive works perfectly, but I also don't gain any exp from him. Sooo.. once again, is there a way around it? |
| 10-18-2004, 12:28 AM | #4 |
Uhmm.....I really dont understand what you mean much i guess what you want is: 1 unit can be attack by 1 special unit -For unit can be attack by special unit just give him ability invulrable so another unit cant attack him ^_^ -For special unit just edit target allow to enemy,invulrable then it can be only attack invulrable unit -May i guess wrong but hope it can help :8 |
| 10-18-2004, 12:30 AM | #5 |
using the locust ability makes a unit untargetable but i do not know if that will enable him to be attacked still. |
| 10-18-2004, 12:47 AM | #6 |
Maybe I should go into EXACT detail what I'm doing. I'm making a.. well.. say a grenade ability. I set the trigger to create a unit at the point of the caster, with a ranged attack using a grenade model. I create a unit at the point of the target that has an AOE death ability, so when he dies, he does damage in a certain area. After I cast the ability, the created unit will attack the unit at the point of the target, and when he does, the target unit will explode doing damage in an area. Get what I'm saying? The problem is, I create both units, and make the attacking on attack the target one. The attacking units missile is kinda slow, and sometimes the target unit gets killed by surrounded enemy units before the grenade hits him, sot he ability looks sloppy. I want the target unit to be unkillable by anything other than the attacking unit so the ability will look flawless. I can do this by creating the target unit for Neutral Passive, but when he explodes, the casting unit doesn't gain any exp from the dying units. |
| 10-18-2004, 01:04 AM | #7 | |
well it should look somthing like this, my eyes are tired and I have to go to bed soon so u might have to tweak this a bit...but it should work. Quote:
|
| 10-18-2004, 01:07 AM | #8 | |
Quote:
-For unit have AOE death ability give him ability invulrable(really there no need AOE death ability just use flame strike and set target allow to invulrable,ground,enemy then create a trigger with event unit is attacked and condition is unit type of attacked unit equal to then order attaked unit cast flame strike at his position modify flamestrike cast time to 0.25s to make it fit time ) -For unit that attack unit have AOE ability set target allow to invulrable,player unit and it can only attack unit have AOE ability |
| 10-18-2004, 01:24 AM | #9 |
thedevil, I have no idea what you just said. Sweet5, thats a good idea, but then wont enemy units run at it, stop, run at it, stop, run at it, stop.. kinda making it look its inching its way towards the target? I tried setting the 'Targeted As' on the target unit to Invulnerable, and setting the 'Targets Allowed' on the attacking unit to Invulnerable, but now it does nothing, BUT enemy units do not attempt to attack the target unit anymore. |
| 10-18-2004, 01:26 AM | #10 |
if u dont want it to look twitchy, just have a floating test message pop up along with like a buzzer sounds that say "You cannot attack this unit" |
| 10-18-2004, 01:37 AM | #11 | |
Quote:
That wouldn't be very good.. since most of the units in the map are neutral hostile, you'd be seeing that message all over the screen when its not like they'll even pay attention to it, let alone thats a pretty tacky resolution to this problem. I'm not worried about other players attacking the target unit, because for one its selection circle is so small it don't exist, and it has no model. Its just a dummy unit. I'm worried about when I cast the grenade ability, that enemy units (Neutral Hostile), will detect it in their acquisition range and begin attacking it, killing it before the grenade has a chance to hit it, or even before the attacking unit has the chance to attack it. So I pretty much want to make it attackable by NOBODY but the caster. Back to the locust idea, will neutral hostile units attempt to attack the unit if it has the locust ability? If not, can I still use a trigger to issue an order to attack it? |
| 10-18-2004, 01:41 AM | #12 |
same trigger as b4 but instead of order unit to stop, make it say set health of attacked unit = 100% |
| 10-18-2004, 01:43 AM | #13 |
Well its gonna look aweful stupid if theres 20 units surrounding and attacking something thats not even there, and besides, if I want my dummy unit to kill it, I have to set its HP VERY low. So I don't want it unkillable... I don't even want it to be attacked unless its by trigger. |
| 10-18-2004, 01:52 AM | #14 |
Here the map i have try do as u say but i dont have grenade model and two dummy unit has no model so it just target a unit an it glow a flamestrike at target point hope it can help and i have make in 15' so if there any bug plz feed back i will fix it ^_^ Another way to solve it is give attacked unit ability ethereal and attacking unit attack type is magic but make sure there no unit has attack type magic around attacked unit or it will end up with they kill it instead of your dummy unit do it ^_^ |
| 10-18-2004, 01:53 AM | #15 |
ok, I think I have a solution to this...time to wip out the world editor and try the NEW 1.17 PATCH TRIGGERS!!11!!11!! w00t, ok this is what u do. Set the gerenade thingy to be invuln, then when make an ability called like detonate. Store position of grenade in a var. When the player uses detonate, make a trigger with these actions!!! Code:
Unit - Order (dummycaster) to damage area in 0.10 seconds of size 500.00 at (postionofgrenade) for 999.00 using attack type Spells and damage type Normal. you may have to change attack type and dmg type around but it SHOULD work, YAYA! |
