• 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] Group Bug!

Status
Not open for further replies.
Level 9
Joined
Jul 24, 2007
Messages
308
why does this unit not being added to group.. help plz
here is action:
  • For each (Integer A) from 1 to 2, do (Actions)
    • Loop - Actions
      • Unit - Create 1 Unit(is not variable) for (Owner of (Casting unit)) at Not-Leaking-Point facing 180 degrees <-- works
      • Set DummyTest = (Last created unit) <--- works
      • Game - Display to (All players) the text: (Unit Name : + (Name of DummyTest)) <-- Displayed correctly
      • Unit Group - Add DummyTest to UnitGroup <<<< does NOT work!
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (DummyTest is in UnitGroup) Equal to True
        • Then - Actions
          • Quest - Display to (All players) the Quest Update message: Unit Added to Group <<<<< does NOT be displayed!
        • Else - Actions
          • Do Nothing
read the action well please..
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Are you sure the problem lies within "Unit Group - Add DummyTest to UnitGroup"?

Try this:
Unit group - pick every unit in UnitGroup and do: Kill picked unit instead of the quest display message.
If he dies, something is just messed up in your IF/THEN/ELSE; otherwise there's a problem somewhere else. Can't see any problems though, so try testing that, and if that doesn't work, paste the whole trigger :)

By the way, what do you need this for? Do you want to do "unit group - issue order" later? cause then you might as well use "unit - issue order to last created unit" inside the loop...
 
Status
Not open for further replies.
Top