Jump to content

Photo

Switch Palace Blocks


  • Please log in to reply
18 replies to this topic

#16 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 12 March 2018 - 08:30 PM

Okay then. I don't need combo changing in the item rooms, so I'll be testing this one:
 

const int SwitchPalace1_ItemID = 123;
const int SwitchPalace2_ItemID = 124;
const int SwitchPalace3_ItemID = 125;
const int SwitchPalace4_ItemID = 126;
const int SwitchPalace5_ItemID = 127;
const int SwitchPalace6_ItemID = 128;

const int SwitchPalace1_ComboID = 16;
const int SwitchPalace2_ComboID = 18;
const int SwitchPalace3_ComboID = 20;
const int SwitchPalace4_ComboID = 22;
const int SwitchPalace5_ComboID = 24;
const int SwitchPalace6_ComboID = 26;

ffc script SwitchPalaces{
	void run(){
		for (int i = 0; i <= 175; i++) {
			if ( (Link->Item[SwitchPalace1_ItemID] && Screen->ComboD[i] == SwitchPalace1_ComboID)
			  || (Link->Item[SwitchPalace2_ItemID] && Screen->ComboD[i] == SwitchPalace2_ComboID)
			  || (Link->Item[SwitchPalace3_ItemID] && Screen->ComboD[i] == SwitchPalace3_ComboID)
			  || (Link->Item[SwitchPalace4_ItemID] && Screen->ComboD[i] == SwitchPalace4_ComboID)
			  || (Link->Item[SwitchPalace5_ItemID] && Screen->ComboD[i] == SwitchPalace5_ComboID)
			  || (Link->Item[SwitchPalace6_ItemID] && Screen->ComboD[i] == SwitchPalace6_ComboID) )
				Screen->ComboD[i] ++;
		}
	}
} 

Edited by Cukeman, 12 March 2018 - 08:30 PM.


#17 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 14 March 2018 - 08:41 AM

Finally got things set up enough to test this, and it looks like it's working, just gotta remember to set the screen FFC and run at Screen Init

 

This is awesome! Thanks a ton!  :D



#18 Anthus

Anthus

    Lord of Liquids

  • Members
  • Location:Ohio

Posted 14 March 2018 - 07:10 PM

Hm, I wonder if Avataro's script would work for a 'world map' with beatable levels. I could replace the 'level goal' with an item which changes a combo to another combo on the world map, right? If that's possible, would either of you care if I shamelessly took this script too? Really, I just need a way to make multiple different combos on a single screen change at different times, and this seems like it would do that perfectly. And it's an FFC so that's a plus. I wouldn't have more than 20-30 levels, so I don't care about making all those dummy items.  :)

 

edit: here is a thread I made about world maps, where I fumble around with jank ideas to avoid asking for a script directly.


  • Avaro likes this

#19 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 14 March 2018 - 08:17 PM

I'm always open to sharing ZC assets, I only ask for credit when people use my graphics.


  • Anthus likes this


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users