| 03-17-2004, 12:51 AM | #1 |
Ok I have this trigger thats supose to set a unit to a variable when you target it and then when you cast ensnare on the enemy unit it spawns a dummy unit that casts entangle root on the enemy unit and all units within 50 range of it. Except when I cast ensnare on the unit, nothing happens, why? Code:
Target Find
Events
Unit - A unit Is issued an order targeting an object
Conditions
(Issued order) Equal to (Order(ensnare))
Actions
Set Webtarget = (Target unit of issued order)
PlasmaWeb
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Plasma Web
Actions
Unit - Create 1 CasterWeb for Player 3 (Teal) at (Position of Webtarget) facing (Position of Webtarget)
Unit - Add a 8.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Night Elf Tree Of Life - Entangle Webtarget
Unit Group - Pick every unit in (Units within 50.00 of (Position of Webtarget)) and do (Unit - Order (Last created unit) to Night Elf Tree Of Life - Entangle (Picked unit)) |
| 03-17-2004, 01:03 AM | #2 |
Few things to aid your cause.
Good-Luck! |
| 03-17-2004, 01:17 AM | #3 |
Linkmaster your getting rusty on me, that first trigger is required. I found the problem, it was I have "cast Nightelf Tree of Life - Entangle Root" instead of "cast Nightelf Keeper of the Grove - Entangle Root" Now I run into another problem. I set the area to pick all units within 500 range or targeted unit and cast entangle root on them but it seem to randomly pick a different number of units within 500 and roots them. Sometimes it will root 2 and sometimes 7 but all in random locations within that 500 radius. I finally come back to WC3 and my world editor is going wack on me, please help! |
| 03-17-2004, 01:28 AM | #4 |
I've done this spell before for someone. You set it up as follows: Code:
Event - Unit begins casting an ability
Condition - Ability being cast equal to entangling roots
Unit type of (casting unit) is equal to (your hero casting the spell)
Actions - Pick every unit in units within 500 of (target of ability) and do...
set CasterVar = random unit from available casters group
remove the caster from the available casters group
Add ability being cast to the caster
order caster to entangling roots picked unit
add caster to unavailable casters
Pick every unit in unavailable casters and do...
remove ability being cast from picked unit
move picked unit instantly to caster gallerythat will do it, i know because it's the exact code basically that i have in my map i'm working on right now. You just need a bunch of invisible casters. Alternately you can use just one caster and add and remove the ability each time, but if you don't use wait right then the casting will get messed up. Best of luck to you. |
| 03-17-2004, 01:34 AM | #5 |
I tell it to do this: Code:
Unit Group - Pick every unit in (Units within 100.00 of (Position of Webtarget)) and do (Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)) but instead of it picking every unit like it says it will, it picks a random number from the location. |
| 03-17-2004, 02:06 AM | #6 |
I am getting rusty on you? Ha! Time to prove you wrong. Let me make the map... |
| 03-17-2004, 02:28 AM | #7 |
Eat... THIS! Haha... Rusty... BWAHAHA! |
| 03-17-2004, 02:35 AM | #8 | |
Well you completed the trigger and I thank you for that, I think UMSWE needs a new version out of something becuase there is no "Target of casted ability" anyways you said in your post Quote:
But in your map you didnt do "A unit is issued an order targeting a object," you just did "A unit begins casting a spell" so HA ^_^ |
| 03-17-2004, 02:53 AM | #9 |
Dude, switch them. They still work. So HA! In YOUR FACE! |
