• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] Need help with autocasting abilities!

Status
Not open for further replies.
Level 4
Joined
Nov 3, 2015
Messages
47
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. :)
 
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.
 
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.
Back
Top