Condition Help!

Helica

New Member
Reaction score
0
This is a really easy trigger problem that I can't seem to do :( All i need is a Condition which counts the number of units in a spersific unit group owned by specific player. Like

Trigger:
  • (Number of units in (Unit Group owned by Player)) Equal to 0


I know its simple but I just can't seem to get it >_<
 

Skippy

Active Member
Reaction score
39
Trigger:
  • (Number of units in (Units in (Playable map area) owned by Your_Player)) Equal to 0


However, this leaks, so you should use something like
Trigger:
  • Set Temp_Group = (Units in (Playable map area) owned by Your_Player)
    • if (Number of units in Temp_Group Equal to 0) then
    • (actions)
    • Custom script: call DestroyGroup(udg_Temp_Group)
 

Synthetics

New Member
Reaction score
7
ok the condiotion should be an interger condition, count number of living units in group

Im not at my comp at home i will post the actually condition as it would be seen in world editor tonight for you if you havent sorted it out by then :D
 

Helica

New Member
Reaction score
0
Trigger:
  • (Number of units in (Units in (Playable map area) owned by Your_Player)) Equal to 0


However, this leaks, so you should use something like
Trigger:
  • Set Temp_Group = (Units in (Playable map area) owned by Your_Player)
    • if (Number of units in Temp_Group Equal to 0) then
    • (actions)
    • Custom script: call DestroyGroup(udg_Temp_Group)

See now I know how to count the units owned by a player in a region, but what i need is in a specific unit group not all the units owned by the player :(
 

Helica

New Member
Reaction score
0
ok the condiotion should be an interger condition, count number of living units in group

Im not at my comp at home i will post the actually condition as it would be seen in world editor tonight for you if you havent sorted it out by then :D

Ye I've tried but all i seem to get is "Units owned by player region" :(
 

Skippy

Active Member
Reaction score
39
Ok, this is probably what are you looking for:

Trigger:
  • (Number of units in (Units owned by Your_Player matching (((Matching unit) is in (Your_Unit_Group)) Equal to True))) Equal to 0
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top