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

Need an autocast Spell Help plz

Status
Not open for further replies.
Level 3
Joined
Sep 6, 2004
Messages
36
I am making a maul and i wanted to make a tower that can cast a modified version of Chain Lightning. the hard part is tring to make it so that when it attacks it casts the spell. I need to make three different levels of it, because the tower upgrades three times.
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
That is easy. Make the tower be unable to attack... So into its attacks available slot select NONE. Now, you will need an autocastable ability which targets enemy units regardless to their status. Try using a SLOW, with no effects, buffs and so on, that targets all enemy units. NOW, change the icon to whatever you want, check the "Always Autocastable" and set the duration of the spell for both hero and unit to 0.01. Change mana cost to whatever and cooldown to 0.75.

Now, make another spell based on Chain Lightning (Neutral Hostile) and change its damage and number of targeted units to whatever you want. Change Mana Cost to 0. Now let's get to the units again. Make a dummy unit based on the footman. Make the unit have 0.00 collision size, as a model the none.mdl, Check the "Not Seen on the Minimap", or soemthing like that, set food cost to 0, set sight to 0, for both day and night, Change type of movement to Fly, and give it the Locust Ability. Search for it... Now, also give the unit hte Chain Lightning Spell you made. Let's get to the triggers...

Event - an unit starts the effect of an ability
COnditions - Ability being cast equal to YourAbility [Slow spell you made]
Actions - Create 1 Dummy unit at position of (Casting Unit) for owner of (Casting Unit)
- Order (Last Created Unit) to Orc - Far Seer- Chain Lightning (Target Unit of Ability being Cast)
- Wait 1 seconds
- Remove (Last Created Unit)

That's all... For Multi-instance (because that's what you need), I'll do you a JASS script if this works for you.
 
Level 3
Joined
Sep 6, 2004
Messages
36
OK i can make it so that the unit casts chain lightning but the hard part about it is that i need to have 3 different ones. for 3 different Levels of towers.
 
Level 3
Joined
Sep 6, 2004
Messages
36
yes this is great, but what i really need to know is how to make three different chain lightnings for three different towers.
 
Status
Not open for further replies.
Top