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

help in creating a specific skill

Status
Not open for further replies.
Level 1
Joined
Jan 8, 2011
Messages
2
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?
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
  • 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)
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
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.
Top