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

[General] What spells are cast in a group vs. are cast per unit

Status
Not open for further replies.
Level 24
Joined
Jun 26, 2020
Messages
1,928
Well, it's easy to trigger it, but you need use Jass because GUI doesn't let you issue any order:
  • Trigger 1
    • Events
      • Unit - A unit issues an order with an object as a target
    • Conditions
    • Actions
      • Set TempGroup = (Units selected by (Triggering player)) //I think triggering player should work, if not, use (Owner of (Triggering unit))
      • Unit Group - Pick every unit in TempGroup and do actions
        • Loop - Actions
          • Custom script: call IssueTargetOrderById( GetEnumUnit(), GetIssuedOrderId(), GetOrderTarget() )
      • Custom script: call DestroyGroup( udg_TempGroup )
  • Trigger 2
    • Events
      • Unit - A unit issues an order with a point as a target
    • Conditions
    • Actions
      • Set TempGroup = (Units selected by (Triggering player))
      • Set TempLoc = (Target point of issued order)
      • Unit Group - Pick every unit in TempGroup and do actions
        • Loop - Actions
          • Custom script: call IssuePointOrderByIdLoc( GetEnumUnit(), GetIssuedOrderId(), udg_TempLoc )
      • Custom script: call DestroyGroup( udg_TempGroup )
      • Custom script: call RemoveLocation( udg_TempLoc )
  • Trigger 3
    • Events
      • Unit - A unit issues an order with no target
    • Conditions
    • Actions
      • Set TempGroup = (Units selected by (Triggering player))
      • Unit Group - Pick every unit in TempGroup and do actions
        • Loop - Actions
          • Custom script: call IssueImmediateOrderById( GetEnumUnit(), GetIssuedOrderId() )
      • Custom script: call DestroyGroup( udg_TempGroup )
These examples are just to give the idea, you have to add more details you wanna.
 
Last edited:
Status
Not open for further replies.
Top