Staredit Network

Staredit Network -> UMS Assistance -> Greater than, Less than
Report, edit, etc...Posted by Rantent on 2005-02-06 at 01:32:03
Say you have a number of units in one area, and you wanted to compare them to the number of units in another. Could you do this using a simple command somehow?
The only way I've been able to think it out is to create a trigger for each number on each comparing side, which grows to an enormous amount. helpsmilie.gif
I'm using this for a game where you fire arial units towards an area, but when they reach the edge of the screen they explode, since the screen is centered around a unit, which can move, I cannot just put another location to one side. I have to put two locations centered on the guy. But if multiple units are fired at once, i have to compare how many shots are "in bound" and how many should be destroyed. I have it currently so that locations are centered on all the bullets fired so locating them isn't a problem.
I'm wondering if this all makes any sense to you. If you have any input please let me know!
Report, edit, etc...Posted by LordVodka on 2005-02-06 at 01:40:44
"""Also, im kinda guessing at what you mean, its kinda worded strangly. Ill try my best though"""

well, you could make a leader board and have a trigger that says,

Condition: Player X brings 1 XXXX(unit) to Location X

Action: Add one 'whatever' to 'whatever' leader board


Report, edit, etc...Posted by (U)Bolt_Head on 2005-02-06 at 01:54:55
You can do it by using tons of bring conditions to determan witch side had more but depending on how many units can be in those areas that could be tons of triggers.

The ideal way would be to litteraly count them, by ither moving them to another part of the map or changing there player. Then reversing the process after you counted them. For many circumstances however this is not a probability.


PS. I don't follow what your talking about in your second paragraph.
Report, edit, etc...Posted by Rantent on 2005-02-06 at 02:14:41
Ya sorry for the whole second paragraph, it was just a little something about a map i was making.
Anyway, thanks for confirming my belief that this would take a lot of triggers, and i will probably have to put limits somewhere. disgust.gif
Report, edit, etc...Posted by (U)Bolt_Head on 2005-02-06 at 02:46:07
Well it wouldn't be very many triggers if you 'counted' them. But dependant on how often you need to check and some other things you might not be able to do that.
Next Page (1)