RadMetalMarioSMIX wrote: ↑Sun Apr 17, 2022 11:21 pm
That and the Star coins don’t give a 1-Up when five are collected. Far as I know…
Bookmarking this in case I come up with something working on SMBK.
the thing with dragon coins is that the game itself doesn't actually keep track of which ones you've collected, it just increases the npc's
score each time one is collected inside a level. the best way that i can think of to do something like this is to create a lua table within
SaveData for each level that will store which dragon coins have been collected. then, inside each level, place the dragon coins inside separate layers and give each a unique death event, and handle these events inside your global "luna.lua" by setting the appropriate values in the aforementioned table. also in the global "luna.lua", you can choose to hide the dragon coins that have already been collected via hiding the separate layers and even change the score that the next one will give accordingly (via NPC.config[274].score). the total count can then be updated by iterating through this table and manually counting them whenever a new one is collected.
i don't have an example ready but i hope this helps