[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: Problem with unit destruction trigger



On 22.01.2007 09:26, Nikola Smolenski wrote:
> On Thursday 18 January 2007 20:01, Jens Granseuer wrote:
> > > Would it be a huge change to make another flag for the unit destruction
> > > trigger that meant "any unit of type X"?
> >
> > Because of the way event triggers work (an early design flaw if you wish),
> > this would not work well. Trigger in CF do not test for events, they always
> > test for conditions.
[...]
> Perhaps the trigger could also check for number of units of certain type. 
> Suppose that at the beginning there are three scouts on a map. If, at a 
> certain point, there are less than three scouts, do something.

This would work in many cases, but not very reliably. Capturing enemy
units, or factories on the map can easily screw this up.

Jens