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

A Player selects A Unit?

Status
Not open for further replies.
Level 8
Joined
Jul 29, 2010
Messages
319
How would one go about this event, i know there is no trigger for "A player" it has to be specific, but i cannot figure out how to make an event that triggers when any player selects any unit, i tried variables but for some reason the event says "there are no variables of this type generated" in the variable box, Thank you in advance :D

  • Deselecting Shop
    • Events
      • Player - A Player Selects a unit
    • Conditions
    • Actions
 
Level 8
Joined
Jul 29, 2010
Messages
319
Just add the event for every player.

  • Select
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
      • Player - Player 3 (Teal) Selects a unit
      • Player - Player 4 (Purple) Selects a unit
    • Conditions
    • Actions
      • Unit - Remove (Triggering unit) from the game
yeah i did end up doing that but i was wondering if there was a way to do it my way, :/
 

Kyrbi0

Arena Moderator
Level 45
Joined
Jul 29, 2008
Messages
9,510
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Trigger - Add to Untitled Trigger 002 <gen> the event (Player - (Player((Integer A))) Selects a unit))
THANK YOU. I have been looking for this for years (not very hard, I guess). I was always copy/pasting, making 12 different triggers!! Oh man this'll be great.
 
Status
Not open for further replies.
Top