• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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,938
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