Permanent Block Secrets
Description
Exactly what it says on the tin: it makes block secrets permanent.
Screenshots and Demo
N/A
Code
//import "std.zh"
//Instructions:
//1. Make a new combo with inherent flag 16 (or any secret flag)
//2. Set this FFC to the above combo
//3. When secrets are triggered by blocks, this script will make it permanent
ffc script blockPermSecrets{
void run(){
int thisCombo = this->Data;
while(!Screen->State[ST_SECRET]){
if(this->Data != thisCombo) Screen->State[ST_SECRET] = true;
Waitframe();
}
}
}Setup
Before you start, don't forget to make sure import "std.zh" is included once at the top of your script file.
This script checks its own FFC's combo data to tell if secrets have been triggered. To make it work, create a combo (preferably invisible) with inherent flag 16, then set the FFC's combo to that. Now as long as you aren't in an NES dungeon, the FFC will detect secret flags being activated and then permanently set the screen's secret state.
Resources
Requires std.zh; included with ZC.

