HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Problem

03-17-2004, 12:51 AM#1
Das Jank
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
linkmaster23
Few things to aid your cause.
  • That first trigger is un-nessasary, just for the trigger do. A unit is issued an order targeting a object, then do ability being cast is equal to Plasma Web, then for the tirggers. Just do Target Unit of Ability being cast.
  • 50 Range?! In warcraft, 50 is like this big | | in a circle. Are you sure thats big enough?
  • If you need any more assistance, just reply here.

Good-Luck!
03-17-2004, 01:17 AM#3
Das Jank
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
volvo64
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 gallery

that 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
Das Jank
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
linkmaster23
I am getting rusty on you? Ha! Time to prove you wrong. Let me make the map...
03-17-2004, 02:28 AM#7
linkmaster23
Eat... THIS! Haha... Rusty... BWAHAHA!
03-17-2004, 02:35 AM#8
Das Jank
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:
That first trigger is un-nessasary, just for the trigger do. A unit is issued an order targeting a object, then do ability being cast is equal to Plasma Web, then for the tirggers. Just do Target Unit of Ability being cast.

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
linkmaster23
Dude, switch them. They still work. So HA! In YOUR FACE!