• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[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