• 🏆 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!

order assault units to attack point(not working plz help)

Status
Not open for further replies.
Level 9
Joined
Mar 1, 2009
Messages
280
this trigger is supposed to pick all units but it only effects 16 one group of them not all, why not?

  • MM MassAttack Rally
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Casting unit)) Equal to Command Center (All Players)
          • (Ability being cast) Equal to MM Rally
    • Actions
      • Set MMRally[(Player number of (Owner of (Casting unit)))] = (Target point of ability being cast)
      • Set RallyUnitGroup[(Player number of (Owner of (Casting unit)))] = (Units owned by (Owner of (Casting unit)) matching ((((Matching unit) is A peon-type unit) Equal to False) and ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is A Hero) Equal to False) and (((Matching unit) is in ExemptUnitGroup[(Pl
      • Unit Group - Order RallyUnitGroup[(Player number of (Owner of (Casting unit)))] to Attack-Move To MMRally[(Player number of (Owner of (Casting unit)))]
      • Custom script: call DestroyGroup(udg_RallyUnitGroup[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))])
      • Custom script: call RemoveLocation (udg_MMRally[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))])
 
Level 9
Joined
Mar 1, 2009
Messages
280
well poop, i think i fixed it, their was a little note at the bottom of that unit group action, saying it only effects 12 units

so i made this trigger hope it works....

  • MM MassAttack Rally
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Casting unit)) Equal to Command Center (All Players)
          • (Ability being cast) Equal to MM Rally
    • Actions
      • Set MMRally[(Player number of (Owner of (Casting unit)))] = (Target point of ability being cast)
      • Set RallyUnitGroup[(Player number of (Owner of (Casting unit)))] = (Units owned by (Owner of (Casting unit)) matching ((((Matching unit) is A peon-type unit) Equal to False) and ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is A Hero) Equal to False) and (((Matching unit) is in ExemptUnitGroup[(Pl
      • Unit Group - Pick every unit in RallyUnitGroup[(Player number of (Owner of (Casting unit)))] and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To MMRally[(Player number of (Owner of (Casting unit)))]
      • Custom script: call DestroyGroup(udg_RallyUnitGroup[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))])
      • Custom script: call RemoveLocation (udg_MMRally[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))])
 
Status
Not open for further replies.
Top