Modernstyledhud.lua Star coin counter.

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
FlyingGym
Koopa
Koopa
Posts: 16
Joined: Sat Aug 17, 2019 3:28 pm
Flair: ok

Modernstyledhud.lua Star coin counter.

Postby FlyingGym » Fri Aug 23, 2019 11:57 pm

I've noticed that There is no display of Star coins when this addon is used,but how could it be made and displayed? I know the creator doesn't include it with the script. (https://wohlsoft.ru/forum/viewtopic.php?f=89&t=1984)

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Modernstyledhud.lua Star coin counter.

Postby Enjl » Sat Aug 24, 2019 5:55 am

The developer disables the default hud entirely, so with the way it's programmed, the star coin counter would have to be remade from scratch. This CAN be done manually by accessing the table SaveData._basegame.starcoin[Level.filename()]. Looping over the table, reveals a list of true/falses which can be used to draw star coin state. There's also SaveData._basegame.starcoinCounter for a total count.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 1 guest