• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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