• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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