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

Make autocast spell?

Status
Not open for further replies.
Level 14
Joined
Aug 8, 2010
Messages
1,022
Hi! I want to ask how i can create a spell that is autocasting. I want my Water Bolt to autocast, but i can't do it. I've tried with dummy magic (neutral "Heal") and it don't work - it can't do damage. Please help! (over all - i want my magic to be missile, do damage and be autocast) +rep for help!
 
Level 14
Joined
Aug 8, 2010
Messages
1,022
I do what the tutorial says - i've created dummy magic (searing arrows) do the
  • Autocast
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to Dummy Spell
    • Actions
      • Unit - Order (Triggering unit) to Orc Raider - Ensnare (Target unit of ability being cast)
and then what? What i need to do with my Water Bolt?
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
First, your spell MUST based on Auto-Casting
Bloodlust/Faerie Fire/Searing Arrow/Orb of Annhilation/etc
Then:
  • Actions
    • Unit - Order (Picked unit) to Human Peasant - Activate Repair
    • Unit - Order (Picked unit) to Human Priest - Activate Heal
    • Unit - Order (Picked unit) to Human Priest - Activate Inner Fire
    • Unit - Order (Picked unit) to Human Sorceress - Activate Slow
    • Unit - Order (Picked unit) to Human Spell Breaker - Activate Spell Steal
    • Unit - Order (Picked unit) to Human Paladin - Activate Divine Shield
    • Unit - And so on... (Make sure it has the "Active" in its text)
Event can be VARIED, meaning it can be changed, depending on your needs
Maybe you want to cast those spells when low HP ?
Use low HP trigger using IF/THEN/ELSE function
Good Luck !
 

sPy

sPy

Level 21
Joined
Apr 10, 2009
Messages
268
  • Is this what you wanted?
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) equals to Searing Arrows
  • Actions
    • Set CasterPos = Position of (Triggering Unit)
    • Unit - Create 1 Dummy for (Owner of (Triggering Unit)) at CasterPos facing Default building facing
    • Set Dummy = Last Created Unit
    • Unit - Add 1.00 generic expiration timer to Dummy
    • Unit - Add Ability to Dummy
    • Unit - Set level of Ability for Dummy to (Level of Searing Arrows for (Triggering Unit))
    • Unit - Order Dummy to YourSpellOrderHere (Target unit of ability being cast)
    • Custom Script - call RemoveLocation(udg_CasterPos)
Something like that? The thing I wrote YourSpellOrderHere has to be chnaged into your desired spell order. For example, if you wanted it to cast storm bolt, then it should be "Order Dummy to Human Hero Mountain King - Storm Bolt".

What I meant is your dummy spell's order should be what is it based on. (If your spell is based on chain lightning, then "Orc Hero Far Seer - Chain Lightning". If forked lightning, "Neutral Hero Naga Sea Witch - Forked Lightning".
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
There 3 possibilities over here:
- Making spells auto-cast by using action trigger (mine)
- Making spell auto-cast by using Event trigger (yours)
- Making spell auto-cast to deal magic damage by X per second (thread starter's... I think)
I'm gonna make the 3rd, later dude~
 
Level 14
Joined
Aug 8, 2010
Messages
1,022
Yes, it is solved! Defskull, can you visit my thread '2 very bug problems'? Because i have very big ammm... problems :D, please! And what happened with the test map for absorbing shield? (i think you told me that you will create test map, or i am wrong?)
 
Status
Not open for further replies.
Top