• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Help me with a spell

Status
Not open for further replies.
The spell is Entangling Roots, but they apply to every unit in the range of the spell. I used Blizzard to make the "cloak" of the spell and I made a dummy with the real Entangling Roots.
  • ENR
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Entangling Roots k
    • Actions
      • Unit Group - Pick every unit in (Units within 250.00 of (Target point of ability being cast) matching ((Race of (Picked unit)) Equal to Human)) and do (Actions)
        • Loop - Actions
          • Unit - Order Dummy Rooter 0044 <gen> to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
 
Level 13
Joined
Dec 21, 2010
Messages
541
What leaks? And the issue is that the roots are not applied.

You leak a point and a group.. this leaks will cause lag to your map. you don't want that do you..

  • ENR
    • Events
      • Unit - A unit Starts an effect of an ability
    • Conditions
      • (Ability being cast) Equal to Entangling Roots k
    • Actions
      • Set Point = Target point of ability being Cast
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 250.00 of Point matching ((Race of (Matching unit)) Equal to Human) and ((Matching unit) is alive)) and do (Actions)
        • Loop - Actions
          • Unit - Order Dummy Rooter 0044 <gen> to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
      • Custom script: call RemoveLocation (udg_Point)


1)Make sure that the dummy you are using has sufficient mana to cast the Entangling Roots...
2)Make sure the dummy has the ability Entangling Roots..
3)Make sure that the ability Entangling Roots cast range is 9999 or enough for to cast it to the distance between the dummy and the target..
 
Level 3
Joined
Mar 31, 2013
Messages
47
Isn't it better to create the unit when you cast the spell, i don't know how can one unit to root more than 1 unit at the same time, with an one target spell.
  • Events
  • Unit - A unit Starts an effect of an ability
  • Conditions
  • (Ability being cast) Equal to Entangling Roots k
  • Actions
  • Set Point1 = Target point of abillity being Cast
  • Set Group = Units withing 250.00 of Point1 matching ((Race of matching unit)) equal to human) and ((Matching unit) is alive)).
  • Pick every unit in Group and do:
  • Loop - Action
    • Set point2 = Position of picked unit
    • Unit - create 1 dummy rooter at point2
    • unit - order last created unit to nelf keeper of the grove - entangling roots picked unit
    • unit - add 0.50 expiration time to last created
    • Custom Script: Call RemoveLocation(udg_Point2)
  • Custom Script: call RemoveLocation(udg_Point)
  • custom script: call DestroyGroup(udg_Group)
 
Level 13
Joined
Dec 21, 2010
Messages
541
Isn't it better to create the unit when you cast the spell, i don't know how can one unit to root more than 1 unit at the same time, with an one target spell.
  • Events
  • Unit - A unit Starts an effect of an ability
  • Conditions
  • (Ability being cast) Equal to Entangling Roots k
  • Actions
  • Set Point1 = Target point of abillity being Cast
  • Set Group = Units withing 250.00 of Point1 matching ((Race of matching unit)) equal to human) and ((Matching unit) is alive)).
  • Pick every unit in Group and do:
  • Loop - Action
    • Set point2 = Position of picked unit
    • Unit - create 1 dummy rooter at point2
    • unit - order last created unit to nelf keeper of the grove - entangling roots picked unit
    • unit - add 0.50 expiration time to last created
    • Custom Script: Call RemoveLocation(udg_Point2)
  • Custom Script: call RemoveLocation(udg_Point)
  • custom script: call DestroyGroup(udg_Group)

It is possible.. just create 1 dummy to cast entangling roots for each unit that is picked..
  • ENR
    • Events
      • Unit - A unit Starts an effect of an ability
    • Conditions
      • (Ability being cast) Equal to Entangling Roots k
    • Actions
      • Set Point[0] = Target point of ability being Cast
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 250.00 of Point matching ((Race of (Matching unit)) Equal to Human) and ((Matching unit) is alive)) and do (Actions)
        • Loop - Actions
          • Set Point[1] = (Position of (Picked unit))
          • Unit - Create Dummy for (Owner of (triggering unit)) at Point[1] facing Default building facing degrees
          • Unit - Add Entangling Roots to (Last created unit)
          • Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Custom script: call RemoveLocation (udg_Point[1])
        • Custom script: call RemoveLocation (udg_Point[0])
 
Level 3
Joined
Mar 31, 2013
Messages
47
And what did i said @venger, to create a dummy for each picked unit, before, he was using 1 unit he already had in map, but ONE, to use entangling on more than 1 unit.
 
Level 3
Joined
Mar 31, 2013
Messages
47
@Venger, confusions:)
@Maker, i never knew such a thing haha
Btw, let's hope stan0033 can solve his problem with the help of our answers.
 
Status
Not open for further replies.
Top