Here's a new one.
CODE
ffc script EnemyToSecretFFC
{
void run(int combo, int cset)
{
// Do nothing until all enemies are dead.
// If the permanent secret is triggered, skips this loop.
while(!Screen->D[0] && Screen->NumNPCs()>0)
Waitframe();
// Check if "Secrets are Temporary" flag is NOT ENABLED and
// if "Enemies -> Secret is Permanent" is ENABLED, then the
// secret is permanent.
if (!Screen->Flags[SF_SECRETS]&2 && Screen->EFlags[SEF_LIST2]&8)
Screen->D[0]=1; // Make the secret permanent.
this->Data = combo;
this->CSet = cset;
}
}
Now, this time, if you WANT it to be permanent, enable "Enemies -> Secret is Permanent" under Screen Data's E. Flags. Note that this is overridden by "Secrets are Temporary" -- if you have that checked, then the secret will be temporary no matter what, even if you have "Enemies -> Secret is Permanent" enabled. Don't know why you would mix the 2 flags anyway, so just don't enable either of them if you don't want permanent secrets.
Now it's up to you if you want it a permanent secret or not on the screens you want this script for.
Edited by Soga, 03 January 2013 - 08:52 PM.