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

AoE deslection

Status
Not open for further replies.
Level 4
Joined
Apr 18, 2013
Messages
57
I am trying to make it so that when my hero uses windwalk it makes nearby enemies within around 250 range deselect their unit on cast.
  • Selection - Clear selection for (Owner of (Target unit of _______))
? is there something I can fill that blank with or is it a bit more complicated than that?
 
Level 4
Joined
Jan 27, 2010
Messages
133
You need to loop through all nearby units.

  • Windwalk
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Wind Walk
    • Actions
      • Unit Group - Pick every unit in (Units within 250.00 of (Position of (Casting unit))) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is selected by (Owner of (Picked unit))) Equal to True
            • Then - Actions
              • Selection - Remove (Picked unit) from selection for (Owner of (Picked unit))
            • Else - Actions
 
Level 4
Joined
Apr 18, 2013
Messages
57
@Dr Super Good
first off the game I am making this on doesn't have AI. Secondly I've done an ability similar to this the result is: deslection is good for rage and giggles. Deselection is just a bloody nuisance, not really threatening.

@themerion
ty sooooo much :)
 
Level 7
Joined
Jan 22, 2013
Messages
293
I largely make these games for me and my friends. If i know something can entertain us I'll toss it in.

The spell you request is highly frowned on, very few people will be willing to make this for you, however; Its your reputation that is on the line once its in your game, people should supply it to you and let you live with what you asked for but that doesn't mean we wont have a say in it.

I can't name a single person who enjoys having their orders interrupted when they are playing a game, that is just as terrible as lagging or having a lag spike, minus the lag. Its angering and abusive towards the people who are the victims of the spell.

1. It will ruin channel spells.
2. It will prevent people from starting to cast spells.
3. it will not only piss them off but induce people to leave the game.
 
Level 4
Joined
Jan 27, 2010
Messages
133
Orthane, I must admit I am terribly confused by your post. You provide misinformation, such as "deselection will interrupt/ruin channeling spells". You don't actually bring anything new to the thread: Multiple people have already pointed out the potential flaws of this spell, and he has answered in a satisfactory way. It doesn't matter if you can't name a person who would like it! You obviously have read (but not understood) RobinValentine's last post. The maps is for his friends, and he knows his friends like it. What is the problem?

Also, it seems to me you think this was a trigger request (implying it was placed in the wrong forum). In my opinion the first post was made in a very "How would I do this" way.

PS. "I think most people won't like that" would have been so much more believable than "highly frowned on".

defskull said:
@themerion
You also need to add a condition that check whether the picked unit is the owner of triggering unit (Triggering player) or not.
You would not want the caster to be deselected too, right ?

Yes, you are abolutely right! Perpahs it's also time to point out what can be done to eliminate the leaks.

  • Windwalk
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Wind Walk
    • Actions
      • Set pointVariable = (Position of (Casting unit)))
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 250.00 of pointVariable and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is selected by (Owner of (Picked unit))) Equal to True
              • (Owner of (Picked unit)) Not Equal to (Owner of (Triggering Unit))
            • Then - Actions
              • Selection - Remove (Picked unit) from selection for (Owner of (Picked unit))
            • Else - Actions
      • Custom script: call RemoveLocation(udg_pointVariable)
Just a footnote: You have to create pointVariable as a variable of the type "point" in the variable dialog.
 
Last edited:
Status
Not open for further replies.
Top