• 0

    posted a message on ending game when unit group is dead

    I'm trying to create a map where the player wins when they've killed all the zerg cocoons. I also created a unit group called eggs.

    How should I created a trigger that checks if a group is empty?

    Also another question, I created this trigger,

    event: when any unit dies

    condition: ((triggering unit is in eggs)) == true

    then do some action.

    This doesn't work. why doesn't: "((triggering unit is in eggs)) == true" sem to work? And how can I create a condition that is just an if statement?

    Posted in: Miscellaneous Development
  • 0

    posted a message on 'unit is clicked' trigger not working

    thanks for responding, but changing player 1 to triggering player didn't change anything, the trigger still isn't going off for a right click or a left click.

    Posted in: General Chat
  • 0

    posted a message on 'unit is clicked' trigger not working

    I just started using the galaxy editor yesterday and I'm just trying to learn how everything works

    I tried making a super simple test trigger that simply gives player 1 1000 minerals when any unit is clicked

    .

    events - Unit Selection - when Any Unit is clicked by Any Player

    actions - Player - Modify Player 1 Minerals: Add 1000

    .

    Well, when I tried testing it out, the trigger never went off no matter how many times I clicked any unit. Is there some thing I'm missing about this trigger?

    Posted in: General Chat
  • To post a comment, please or register a new account.