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

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