Jump to content

Photo

Custom collectibles (like Skulltulas etc)


  • Please log in to reply
2 replies to this topic

#1 Peteo

Peteo

    Back in Business!

  • Members
  • Real Name:Pete
  • Location:Finland

Posted 30 December 2019 - 03:01 PM

Hey guys,

 

I'd like to have a collectible item that can be exchanged for useful items (in the way of Golden Skulltulas from OoT and MM). For example, if I collect 10 Skulltulas, I get a reward. After 20 Skulltulas, I can collect another reward and so on. Is it possible to do in a fluent way in today's ZC?

 

I know how to set up a custom collectible and how to make it show up on my subscreen. All I need is a script that checks if I have enough Skulltulas to receive a reward, or a script that let's me proceed to the next screen where I can collect my reward.

 

Sorry for being such a script noob. Any help would be greatly appreciated. :)


Edited by Peteo, 30 December 2019 - 03:05 PM.

  • Deedee likes this

#2 Avaro

Avaro

    o_o

  • Members
  • Real Name:Robin
  • Location:Germany

Posted 30 December 2019 - 03:53 PM

Yeah sure, this is possible, in many different ways.

ffc script CollectibleCheck{
	void run(int counter, int num){
		if ( Game->Counter[counter] >= num )
			Screen->TriggerSecrets();
	}
}

You could use an FFC script like this that activates screen secrets if Link has enough items. Specify what counter to use in D0, and how many of that are needed in D1.

 

As for scriptless options, you could use string control codes, although this is kinda limited as you can't trigger warps or screen secrets with them. Unless you are using the alpha ZC versions (2.55) which can do that. Could apparently also use lock blocks with custom options in most recent alphas of 2.55.


  • Alucard648 likes this

#3 Peteo

Peteo

    Back in Business!

  • Members
  • Real Name:Pete
  • Location:Finland

Posted 31 December 2019 - 06:58 AM

Hey thanks for the quick reply. I'm gonna try that code. Seems like string control codes aren't usable for this, at least not in ZC 2.53.

 

Sounds like ZC 2.55 is gonna be awesome. Seems like a good time to be returning to ZQuesting.


Edited by Peteo, 31 December 2019 - 07:30 AM.

  • ShadowTiger and Avaro like this


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users