• 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.

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