In this case it doesn't need to be fancy, and I understand there may be some issues with running "real-time" so it might just have to poll every, say, second or so. This is a pretty limited case so it's not the end of the world if it causes some performance degredation, I'll be running this on pretty modern hardware with Zandronum 3.0+ (thank you SO much for named scripts! Seriously cannot thank you enough, I REALLY needed that). It just has to dump something to the console that says, "secret found," or something along those lines.
UPDATE:
So as not to bump my own thread I'm just editing this. Digging around more in the ACS documentation do you think I'd be able to do something like this:
Code: Select all
script "Secret Found" ENTER
{
int secret = 0;
int oldsecret = -1;
while (TRUE)
{
secret = <some function that checks MAPINFO secret amount>
if ( secret > oldsecret )
{
Log (s:"Players uncovered a secret!");
oldsecret = secret;
}
Delay (1); // Wait for next frame
}
}