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