Help with interger comparison

  • Thread starter Thread starter darknaj
  • Start date Start date
D

darknaj

Guest
Alright, I've got a trigger to work 100% the way I want it except for this one
condition:
Code:
(Number of units in (Units in Capture <gen> owned by (Triggering player))) Greater than or equal to (Number of units in (Units in Range1 <gen> owned by (Owner of Pocket Factory (Level 3) 0008 <gen>)))

Capture / Range1 are regions.
What I'm aiming for is to require the region of Range1 to be cleared out before
the trigger will fire. Yet when I test it (it fires when a unit enters Capture),
it doesn't work and I know there are no others units in the area.

Anything I've overlooked?
 
Code:
Conditions
    (Number of units in (Units in No region)) Equal to 0

For condition put this...with ur other triggers :D
 
Could U give more details....what is it for and stuff...(usually helps) and also maybe a little quick drawing of ur regions...

very confusing
 
make sure there are no corpses in the area, they count as units.
 
I'll give it a shot, but my talents are.. limited.

|---------|
|...........
X|
|.............|
|---------|


Orange = Range1
Red X = Target

The point of this trigger is to have X (a building) to be rescued, but only
when all the defending units within Range1 are dead. Since I assume regions
can overlap with out a problem in triggering..
 
AgentPaper said:
make sure there are no corpses in the area, they count as units.

Didn't know that, but doesn't help in this condition.
I will make sure it won't cause problems later though - thanks :)
 
|-----------|----------|
|-----------|----------|
|-----------|-------X--|
|-----------|----------|
|-----------|_________|
|----------------------|
|----------------------|
|___________________|


Area to check for no units
Area with hero in it
Building to be captured
 
That looks much better AgentPaper..

Anyways, I got it. Just had to reword the first suggestion a little so that it
was equal to or less than 1 (building counts as a unit, damn stupid me).

Thanks for the help :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Staff online

  • Ghan
    Administrator - Servers are fun

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top