• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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