Language…
19 users online:  Atari2.0, DanMario24YT, Dennsen86, deported, derv82, drkrdnk, eltiolavara9, h.carrell, Isikoro, krizeth, masl, MorrieTheMagpie, Serena, Shomi, sinseiga, sparksplit-smw, StarWolf3000, steelsburg, trihex - Guests: 287 - Bots: 313
Users: 64,795 (2,375 active)
Latest user: mathew

[SOLVED] How to Check for Number of Levels Completed

Hi all,

I apologize if this is in the wrong spot since I don't know if it would qualify as a request or not - I almost positive this ASM exists, I'm just unsure where to find it.

I have an idea for a new hack and I'm wanting to have a setting to where you can either:

- continue to the rest of a level (like in the last level of "Hack" by Golden Yoshi); or
- move to another overworld (as in the ??? level in "Elephants and Snakes and Crocodiles" by Morsel)

...only once you've completed all of the levels prior - the order of completion doesn't matter. I saw Nowieso's overworld flag UberASM but I can't really tell if that's what I'm looking for - I don't understand the code very well since I'm a beginner with it all.

Any tips?
The number of exits (i.e. events that have been triggered) is stored in $1F2E, so you can check if the value at that address is equal to the number you want. For example, this block does exactly that to determine if to be solid or not.
This is extremely helpful, thank you!

To use the block you linked, I'd need to use GPS, correct? Or is there a different block inserting tool that I need to use?
Originally posted by marathonx
To use the block you linked, I'd need to use GPS, correct? Or is there a different block inserting tool that I need to use?

Yes, GPS is the way to go. There is no other block insertion tool that I know of :p
Windowless ride, feeling alive
Are you alive or just breathing?
Yes, you use GPS. The only issue is if your rom uses SA-1, in which case you'd need to convert it (which in this case is pretty simple, just a matter of turning the two instances of "$1693" to "$1693|!addr" and "$1F2E" to "$1F2E|!addr").
Sounds good, I have only ever made exclusively vanilla things before - no custom graphics, no custom block, no nothing, so this has been really helpful. I'm still in the very very early stages so I'll definitely reach out if I run into anything else.

Thanks :)