Jump to content

Photo
- - - - -

Permanent Block Secrets

FFC

  • Please log in to reply
3 replies to this topic

#1 MoscowModder

MoscowModder

    Run for your life.

  • Script DB Staff
  • Gender:Male
  • Location:Not where you'd think

Posted 16 February 2012 - 06:31 PM

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.

#2 Jared

Jared

    New Leeeeaf

  • Members
  • Real Name:Link
  • Gender:Male
  • Location:Massachusetts
  • Past Nicks:Lynker

Posted 23 November 2012 - 09:19 PM

I'm a bit confused on how to set this up. Mind explaining it a bit more? Because I can't get it to work.

#3 MoscowModder

MoscowModder

    Run for your life.

  • Script DB Staff
  • Gender:Male
  • Location:Not where you'd think

Posted 23 November 2012 - 11:20 PM

Make a new combo in the combo sheet (that's NOT combo #0). Give it an inherent secrets flag (16-31), so that whenever secrets are triggered, the combo will change. Place the FFC with the above combo on the screen, and it will force secrets that aren't usually permanent to be permanent.

Disclaimer: This script does not work in an NES Dungeon DMap or screen, since they don't have permanent secrets at all.

#4 Jared

Jared

    New Leeeeaf

  • Members
  • Real Name:Link
  • Gender:Male
  • Location:Massachusetts
  • Past Nicks:Lynker

Posted 24 November 2012 - 01:57 AM

Works perfectly. Thanks you very much, MM. icon_smile.gif



Also tagged with one or more of these keywords: FFC

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users