• 🏆 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!

[General] Need help with autocasting abilities!

Status
Not open for further replies.
Level 3
Joined
Nov 3, 2015
Messages
42
So I have these components here:
  • A Custom Hero
  • A Custom Unit
  • An autocasted Dummy Ability
  • A trigger for the Dummy Ability
The order in which events occur:
  • Custom Hero summons 2 Custom Units
  • Custom Units cast Dummy Ability on any available nearby enemy
  • Enemies that have Dummy Ability cast on them will be affected by Entangling Roots for a period of time
As you probably guessed, everything was successful until it came down to the enemy not being affected by Entangling Roots at all.

Here's the trigger I have:
  • Entangling Vines
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Entangle Enemy
    • Actions
      • Unit - Order (Triggering unit) to Night Elf Keeper Of The Grove - Entangling Roots (Target unit of ability being cast)
I read through this thread before creating the trigger:
Making any Spell Autocasting

Thanks in advance if I can't get to you. :)
 
Level 11
Joined
Jun 2, 2004
Messages
849
Do the units have the capacity to actually cast the entangling roots on the target? Roots can't target air, cost mana, can't hit magic immune, has a range, etc etc.

I might suggest having a dummy unit be the one that actually casts the roots spell, instead of the autocast unit.
 
Level 6
Joined
Aug 31, 2014
Messages
137
So I have these components here:
  • A Custom Hero
  • A Custom Unit
  • An autocasted Dummy Ability
  • A trigger for the Dummy Ability
The order in which events occur:
  • Custom Hero summons 2 Custom Units
  • Custom Units cast Dummy Ability on any available nearby enemy
  • Enemies that have Dummy Ability cast on them will be affected by Entangling Roots for a period of time
As you probably guessed, everything was successful until it came down to the enemy not being affected by Entangling Roots at all.

Here's the trigger I have:
  • Entangling Vines
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Entangle Enemy
    • Actions
      • Unit - Order (Triggering unit) (this needs needs to be casting unit for starters) to Night Elf Keeper Of The Grove - Entangling Roots (Target unit of ability being cast)
I read through this thread before creating the trigger:
Making any Spell Autocasting

Thanks in advance if I can't get to you. :)
heres something i used in an old map of mine it might help it might not.
  • Posion Net
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Value
    • Actions
      • Set hero = (Casting unit)
      • Set point = (Position of (Target unit of ability being cast))
      • Set Abilitylevel = (Real((Level of Unknown (A075) for hero)))
      • Set herolevel = (Level of Unknown (A075) for hero)
      • Unit - Create 1 Unit for (Owner of (Casting unit)) at point facing Default building facing degrees
      • Set DUMMY2 = (Last created unit)
      • Unit - Set level of Shadow Strike for DUMMY2 to herolevel
      • Unit - Order DUMMY2 to Night Elf Warden - Shadow Strike (Target unit of ability being cast)
      • add expiring death time or remove it after it finishes its cast.
      • Set hero = No unit
      • Set Abilitylevel = 0.00
      • Set herolevel = 0
      • Set DUMMY2 = No unit
      • Custom script: call RemoveLocation (udg_point)
 
Status
Not open for further replies.
Top