• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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

Status
Not open for further replies.
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.
Back
Top