• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

help in creating a specific skill

Status
Not open for further replies.

shitakemoon

S

shitakemoon

Guys I was wanting to create an AoE skill that hit-kills any spell imune creatur within its AoE. Does anybody have any idea about how to do it and if it's possible to be done?
 
  • Actions
    • Set loc = (Position of (Triggering unit))
    • Set group = (Units within aoe of loc matching (((Matching unit) is Magic Immune) Equal to True))
    • Unit Group - Pick every unit in group and do (Actions)
      • Loop - Actions
        • Unit - Kill (Picked unit)
    • Custom script: call DestroyGroup(udg_group)
    • Custom script: call RemoveLocation(udg_loc)
 
thx for helping
I found another way to do it without variables, anyway, but I appreciate ur help
+rep
 
If you're using Unit Group without its variable, it still needs to be cleaned, shitakemoon
By using Custom script of course (place this above Unit Group action)
  • Custom script: set bj_wantDestroyGroup = true
This action will make the Unit Group action after it has been used, will be cleaned/destroyed immediately
So, it depends on the situation whether to use a variable Unit Group, or not
 
Status
Not open for further replies.
Back
Top