Isn't there a way you could just reset the locations of the items if you exit the DMap before finding them all and empty the counter? Seems like it would be a little cleaner and it would save him from having to use 10 or more counters for this alone,
The real problem with using one counter for all fairies is that is you found 10 fairies in dungeon one, then 5 in dungeon 2 and your goal was 15 fairies for a reward; if you used one counter you'd get it from either dungeon's fairy.
So, I'm guessing with the other dungeons instead of script 1 I set script 2?
How would I go about doing that? Please tell me!
Depends on how many dungeons you have. For every dungeon you want to have fairies in, you'd want to have a different script counter. The first step to setting up your script counters is to initialize them, via script.
int FAIRY_COUNTER1 = CR_SCRIPT1; int FAIRY_COUNTER2 = CR_SCRIPT2; const MAX_FAIRIES = 15;///I'm using this as an example if you wanted to have the same amount of fairies in each dungeon. You don't have to. If you have different amounts in different dungeons and set them by variable, they have to be constants. Or you could just type 15 into the appropriate place in the global script. //Repeat this for however many fairy counters you want, using all 25 Script Counters if you desire. //In the global script, do this. global script globalscript{ void run(){ Game->MCounter[FAIRY_COUNTER1] = MAX_FAIRIES; Game->MCounter[FAIRY_COUNTER2] = MAX_FAIRIES; ///Repeat for however many fairy counters you have. Without initializing these via script, they can't count anything. Must place this before while(true) while(true){ //Other functions here. Waitdraw(); //Other functions here. Waitframe(); } } }
The next step is to place the counter on the subscreen. Since each dungeon uses a different counter, that means a different subscreen for each dungeon. However, you can export an existing subscreen; then import it into an empty slot to create an exact copy (perhaps changing the name to help you distinguish them).
On the subscreen, you'd create a new counter, set the color of the counter, make sure it displayed the right number of digits (in this case two). It will ask you on that same page what that counter should display. You would change that to Script 1, Script 2, etc.