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

[Spell] Make dummy unit cast spell based on that spell level

Status
Not open for further replies.
Level 4
Joined
Dec 16, 2013
Messages
84
Hello i want to ask how to make dummy unit cast spell based on spell level

Like so


stormbolt lvl 1 = 1secs stun
stormbolt lvl 2 = 2secs stun
stormbolt lvl 3 = 3secs stun

Hero cast a ablity
ability equal to blink strike (just for example)
Create 1 dummy caster for Hero
add stormbolt ability to that dummy caster
order dummy caster to cast stormbolt ( to target unit of abilty being cast )

so if hero cast
blink strike lvl 2 = dummy unit cast stormbolt lvl 2
if blink strike lvl 3 = dummy unit cast stormbolt lvl 3 as well

hope you understand and pls teach me how to make trigger like that
 
Level 21
Joined
Aug 13, 2011
Messages
739
You can increase its ability level with this type of action:
  • Actions
    • Unit - Set level of Storm Bolt for Dummy to (Level of Blink Strike for Hero)
I'll attach an example map for the rest of it.
 

Attachments

  • Target Ability + Stun.w3x
    10.1 KB · Views: 54
Status
Not open for further replies.
Top