• 0

    posted a message on Check number of units in the area

    Thank you guys) Reinstalled the game for this (becouse i failed to switch language, don't know why) but anyway - final condition

    (Number of Living units in (Any units in "Gas Station" owned by player 1 matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) == 0

    And, nobody knows answer for (And...can i make ability cost some amount of supply, instead of usual energy/minerals? Just like build the unit - if i have not enough of free supply, i can't use it.)?

    Posted in: Triggers
  • 0

    posted a message on Check number of units in the area
    Quote from joey101d: Go

    give the second trigger a condition:

    number of living units in (region) owned by player (1) == 0

    you may also want to add the event: unit dies because you don't want dead units to be able to generate minerals, do you? for this I would add the condition: owner of triggering unit == player 1

    i have the second condition already. Its funny, but i can't just find the "number of living units..." in russian version. In which category it is? Unit? Searching for that two days now

    Edit: Actualy, i saw this line many times, but didn't find it. May be someone can get screenshot of it, where it is

    Posted in: Triggers
  • 0

    posted a message on Check number of units in the area

    I will try to explain. Sorry for english if smth wrong. I have area which give me 2 minerals per second if unit of Player 1 enter the area. (just like area of influence) Also, i have second trigger to stop gain minerals if unit leaved. And that is problem. For example, five unit stays and one leave, trigger turn off. Can someone explain, in detail, how to make trigger check the number of units, and work only if no more unit left in the area (no more units - stop gain). My editor in russian, so i cant just search for some things in list of triggers.

    (And...can i make ability cost some amount of supply, instead of usual energy/minerals? Just like build the unit - if i have not enough of free supply, i can't use it.)

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