• 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.

Autocast Shockwave Ground Ability

Status
Not open for further replies.
Level 6
Joined
Dec 24, 2012
Messages
187
Hi guyz,
i have a problem how to make an ability Shockwave (Ground) to be an auto-cast spell..
just like nevermore shadowraze autocasting..
but i want a shockwave spell to be auto-cast..
what will i do to make a shocwave ability being autocasted ? :ogre_icwydt:
 

Ralle

Owner
Level 79
Joined
Oct 6, 2004
Messages
10,183
There is no way to make any spell autocast just like that.

There are multiple ways of doing this.

1. You make a trigger that forces the unit to cast it every few seconds. This will not give you the clickable autocast thing.
2. You take a different spell that already has autocast and change its icon to shockwave and remove its effects (dummy spell that has autocast). Then give the unit shockwave but make that one invisible. Finally write a trigger that orders the unit to cast shockwave when the dummy ability is cast.
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
How does one autocast shockwave? Use when x number of enemies is near? If so computers already autocast in that sense.

Nevermore from dota does not use shockwave on an autocast...

He uses instant cast abilities that make a unit group about a point (in the direction nevermore is casting offset by x amount) then deal damage to the picked units.
 
Level 6
Joined
Nov 5, 2013
Messages
132
You can use this methods:
 

Attachments

  • Autocast.jpg
    Autocast.jpg
    185 KB · Views: 136
@Severalser
your method leaks, I recommend clean them whenever showing triggers here so newbies don't get confused.

@Ralle
1st method is kinda annoying, it might disrupt orders
2nd method is kinda good, I can't recall any ability that's auto cast with point target however.

@pOke
Yes, Nevermore uses Radius Damage from his Facing Angle, that's why he can use the technique to deal damage instantly.
 
Level 6
Joined
Dec 24, 2012
Messages
187
Thank you Guyz .. +rep all.

guyz, how do i make the unit cast in a point..
just like nevermore shadowraze ?
but i want to use shockwave as an ability..

so that, the unit will cast a shockwave on the facing angle..
removing the attack/ability sight/arrow ..
will cast instantly just pressing the Hotkey button ..
 
First.. Create a base ability like Daffa the Mage said..
Make sure to check the details of Channel as base ability..
then.. Create a dummy ability which is the Shockwave ability.
.name it whatever u want .. but in this trigger I named the ability as "IS Damage"
Make sure this ability can be cast 9999 range.. and has no mana cost and cooldown..

[trigger=Cast]IS Cast
Events
Unit - A unit Starts Effect of an ability
Conditions
(Ability being cast) Equal to Instant Shockwave
Actions
set Point[0] = (Position of (triggering unit))
set Point[1] = (Point[0] offset by 500 towards facing of (triggering unit) degrees
Unit - Create 1 Dummy for (Owner of (triggering unit)) at Point[0] facing (Angle between Point[0] to Point[1]) degrees
Unit - Add IS Damage to (Last created unit)
Unit - Set level of IS Damage for (Last created unit) to (Level of Instant Shockwave for (triggering unit))
Unit - Order (Last created unit) to Shockwave Point[1]
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation (udg_Point[0])
Custom script: call RemoveLocation (udg_Point[1])[/trigger]
 
Level 6
Joined
Dec 24, 2012
Messages
187
First.. Create a base ability like Daffa the Mage said..
Make sure to check the details of Channel as base ability..
then.. Create a dummy ability which is the Shockwave ability.
.name it whatever u want .. but in this trigger I named the ability as "IS Damage"
Make sure this ability can be cast 9999 range.. and has no mana cost and cooldown..

[trigger=Cast]IS Cast
Events
Unit - A unit Starts Effect of an ability
Conditions
(Ability being cast) Equal to Instant Shockwave
Actions
set Point[0] = (Position of (triggering unit))
set Point[1] = (Point[0] offset by 500 towards facing of (triggering unit) degrees
Unit - Create 1 Dummy for (Owner of (triggering unit)) at Point[0] facing (Angle between Point[0] to Point[1]) degrees
Unit - Add IS Damage to (Last created unit)
Unit - Set level of IS Damage for (Last created unit) to (Level of Instant Shockwave for (triggering unit))
Unit - Order (Last created unit) to Shockwave Point[1]
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation (udg_Point[0])
Custom script: call RemoveLocation (udg_Point[1])[/trigger]

Thank You, i will Try This.. +Rep
 
Status
Not open for further replies.
Top