Jump to content

Photo

Message on secrets


  • Please log in to reply
2 replies to this topic

#1 klop422

klop422

    Evil Crazy Mastermind

  • Members
  • Real Name:Not George
  • Gender:Male
  • Location:Planet Earth

Posted 06 August 2018 - 10:25 AM

Is there a way to make a string play on the first time you enter a screen after screen secrets having been activated (in a different screen, using screen state carryovers)? It should only play once.



#2 ywkls

ywkls

    Paladin

  • Members
  • Gender:Unspecified

Posted 06 August 2018 - 11:24 AM

Completely untested script below (mostly because I'm not entirely sure how carryover secrets work).

//D0- Message to play
//D1- Screen->D register to store this in. Uses a number from 0 to 7.

ffc script Secrets_Carried_Over{
	void run(int message, int register){
		if(Screen->D[register]!=0)
			Quit();
		while(!Screen->State[ST_SECRET])
			Waitframe();
		Screen->Message(message);
		Screen->D[register]= 1;
	}
}

What this should do is as long as screen secrets haven't been triggered on that screen and the register doesn't have a value (which will be the case unless it is adjusted by a script) will play a message once the secrets have been activated.



#3 Shoshon the Elegant

Shoshon the Elegant

    White Tiger King!

  • Database Staff
  • Real Name:Michael
  • Gender:Male
  • Location:Florida

Posted 06 August 2018 - 12:56 PM

Put an auto side warp secret combo in the room. Then set it up to warp you to a duplicate Door Repair room type screen.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users