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

I need help with the player selects a unit

Status
Not open for further replies.
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • Trigger - Add to Trigger2 <gen> the event (Player - Player(IntegerA) selects a unit)
To get Player(IntegerA), when it asks you for a player input, scroll to Conversion - Convert player index to Player.
  • Trigger2
  • Events
  • Conditions
    • ((Triggering unit) is in DeselectGroup) Equal to True //Boolean comparison, Unit - Unit is in Unit Group
    • (Triggering player) Equal to (Owner of (Triggering unit)) //Player comparison
  • Actions
    • Selection - Remove (Triggering unit) from selection for (Triggering player)
  • Trigger3
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to X
  • Actions
    • Unit Group - Add (Triggering unit) to DeselectGroup
 
Status
Not open for further replies.
Top