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

[Trigger] mass command help

Status
Not open for further replies.
Level 6
Joined
Oct 11, 2005
Messages
142
I can't seems to see what is wrong with this trigger, can anyone else?
The spell I'm using as a base is far sight and is in a spellbook

Command
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Rising Dead Command
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Rising Dead Command
Then - Actions
Unit Group - Pick every unit in (Units owned by (Owner of (Target unit of ability being cast)) matching ((((Unit-type of (Matching unit)) Equal to Fallen Warrior) or ((Unit-type of (Matching unit)) Equal to Fallen Archer)) and (((Matching unit) is in Undead_Command_Units) Equal to False))) and do (Unit Group - Add (Picked unit) to Undead_Command_Units)
Unit Group - Pick every unit in Undead_Command_Units and do (Unit - Order (Picked unit) to Attack-Move To (Target point of ability being cast))
Else - Actions
 
Level 37
Joined
Mar 5, 2008
Messages
3,887
Use trigger Tags
  • Command
  • Events
  • Unit - A unit Starts the effect of an ability
  • Conditions
  • (Ability being cast) Equal to Rising Dead Command
  • Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Ability being cast) Equal to Rising Dead Command
  • Then - Actions
  • Unit Group - Pick every unit in (Units owned by (Owner of (Target unit of ability being cast)) matching ((((Unit-type of (Matching unit)) Equal to Fallen Warrior) or ((Unit-type of (Matching unit)) Equal to Fallen Archer)) and (((Matching unit) is in Undead_Command_Units) Equal to False))) and do (Unit Group - Add (Picked unit) to Undead_Command_Units)
  • Unit Group - Pick every unit in Undead_Command_Units and do (Unit - Order (Picked unit) to Attack-Move To (Target point of ability being cast))
  • Else - Actions
This is how your trigger looks like.

Ok first you need a few variables
1. Unit group give it a name GroupVar01
2. Point give it a name TempLoc01

3.Use "set variable action" and search for "GroupVar01" and sat tit as you sat it in upper line like
  • set GroupVar01 = Pick every unit in (Units owned by (Owner of (Target unit of ability being cast)) matching ((((Unit-type of (Matching unit)) Equal to Fallen Warrior) or ((Unit-type of (Matching unit)) Equal to Fallen Archer)) and (((Matching unit) is in Undead_Command_Units) Equal to False)))
4. Than same goes for point
  • set TempLoc01 = Targeted point of abilitiy being cast
5. when you no longer need a group/point you simply destroy it
  • Command
  • Events
  • Unit - A unit Starts the effect of an ability
  • Conditions
  • (Ability being cast) Equal to Rising Dead Command
  • Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Ability being cast) Equal to Rising Dead Command
  • Then - Actions
  • set TempLoc01 = Targeted point of abilitiy being cast
  • set GroupVar01 = Pick every unit in (Units owned by (Owner of (Target unit of ability being cast)) matching ((((Unit-type of (Matching unit)) Equal to Fallen Warrior) or ((Unit-type of (Matching unit)) Equal to Fallen Archer)) and (((Matching unit) is in Undead_Command_Units) Equal to False)))
  • Unit Group - Pick every unit in GroupVar01 do (Unit - Order (Picked unit) to Attack-Move To (TempLoc01))
  • Custom Script - call RemoveLocation(udg_TempLoc01)
  • Custom Script - call DestroyGroup udg_GroupVar01
  • Else - Actions
But im not sure, its been a while when i last trigger something.

Edit: now i see the Maching unit are FELSE, so thats why it don't work.
 
Last edited:
Status
Not open for further replies.
Top