• 🏆 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] Entangling Roots Autocast

Status
Not open for further replies.
Level 3
Joined
May 23, 2015
Messages
19
Hey there,

I was in the world editor trying to make a Entangling Roots autocast ability based on Slow ability. Nothing special, just like the original Entangling Roots ability but autocast.

I make the dummy unit:

DummyUnit.jpg

The dummy ability:

DummyAbility.jpg

And make this trigger:

  • Autocast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Entangling Roots (Dummy)
    • Actions
      • Set temppoint = (Position of (Target unit of ability being cast))
      • Unit - Create 1 Night Elf Dummy for (Triggering player) at temppoint facing Default building facing degrees
      • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Target unit of ability being cast)
      • Custom script: call RemoveLocation(udg_temppoint)
At first it worked well, but the problem is that even if the ability is at level 2 or 3, when the unit cast the ability the duration and damage will be the same if it were at level 1.

I don't know if something is missing in this trigger (or even in the dummy ability), but I don't know how to fix it. I'm really really really bad at triggers. So, can anyone help me?

I would really appreciate it, thank you!
 
Last edited:
Level 12
Joined
Nov 3, 2013
Messages
989
At first it worked well, but the problem is that even if the ability is at level 2 or 3, when the unit cast the ability the duration and damage will be the same if it were at level 1.

I don't know if something is missing in this trigger (or even in the dummy ability), but I don't know how to fix it. I'm really really really bad at triggers. So, can anyone help me?
Well that's because the level of the ability on the dummy unit doesn't change automatically.

All you need to do is add set level of ability (entangling roots) for (Last created unit) to level of ability (Entangling Roots (Dummy)) of (Triggering Unit), that way the ability of Entangling Roots will be on the same level as the slow


p.s. it won't look exactly like how I wrote it, but should be close enough for you to figure it out
 
Level 27
Joined
May 18, 2018
Messages
397
Well that's because the level of the ability on the dummy unit doesn't change automatically.

All you need to do is add set level of ability (entangling roots) for (Last created unit) to level of ability (Entangling Roots (Dummy)) of (Triggering Unit), that way the ability of Entangling Roots will be on the same level as the slow


p.s. it won't look exactly like how I wrote it, but should be close enough for you to figure it out

More precisely, this function:

  • Unit - Set level of Ability for (Last created unit) to (Level of HeroAbility for (Triggering unit))
 
Level 3
Joined
May 23, 2015
Messages
19
Oh, now it works!

Thank you guys for your time.

:)

edit: +rep for you both, thank you again!
 
Last edited:
Status
Not open for further replies.
Top