Highscore.lua

This is the place for discussion and support for LunaLua and related modifications and libraries.

Moderator: Userbase Moderators

Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Highscore.lua

Postby PixelPest » Fri Dec 09, 2016 5:38 pm

And...here's another one. This API allows for highscores to be recorded in levels and printed to the screen at the preferred positions. There's not really much to explain for this one.

This is what the configuration looks like by default:
Imagehttp://i.imgur.com/CRvwUne.png[/rimg]

Here's the documentation link: http://wohlsoft.ru/pgewiki/Highscore.lua

And here's the download: http://hastebin.com/hugipenuso.lua

As usual I'm open to feedback

loop
Ninji
Ninji
Posts: 984
Joined: Sun Apr 17, 2016 5:56 pm
Flair: i may be dumb but im not stupid!
Pronouns: he/him/they

Re: Highscore.lua

Postby loop » Fri Dec 09, 2016 6:59 pm

Does it save along with the .sav file? If so, it would be very useful.
Even if not, it can help set the score to the ergonomic preferences.

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Highscore.lua

Postby PixelPest » Fri Dec 09, 2016 8:46 pm

Jayce 777 wrote:Does it save along with the .sav file? If so, it would be very useful.
Even if not, it can help set the score to the ergonomic preferences.
It can't save to the .sav file but it creates its own data file which will be there until you delete it

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: Highscore.lua

Postby MECHDRAGON777 » Sat Dec 10, 2016 12:41 pm

I knew I should have finished my Score API three months ago. Does this work on the world map, give the option to count lives at specific score amounts, and give the option to reset the score to zero after entering the level?

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Highscore.lua

Postby PixelPest » Sat Dec 10, 2016 9:54 pm

It doesn't have anything to do with the map, only highscores within levels. I have no idea what you mean by the lives thing. There's the reset function that resets highscore for the loaded level. Basically what's in the documentation is in it and what's not listed there is not. I'd suggest you read it if you want to know about the features it has

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: Highscore.lua

Postby MECHDRAGON777 » Sun Dec 11, 2016 6:42 am

PixelPest wrote:It doesn't have anything to do with the map, only highscores within levels. I have no idea what you mean by the lives thing. There's the reset function that resets highscore for the loaded level. Basically what's in the documentation is in it and what's not listed there is not. I'd suggest you read it if you want to know about the features it has
I mean, I had to ask since I would have to stop working on mine if yours already is better. Mine currently resets the score (not high score) to zero as soon as you exit the level, and also gives the player lives when their score passes customizable values. Only part I need to work on is displaying it at the world map.

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Highscore.lua

Postby PixelPest » Sun Dec 11, 2016 8:20 am

Why would you need to see the score on the world map? Just of the level that you're on?

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: Highscore.lua

Postby MECHDRAGON777 » Sun Dec 11, 2016 9:41 pm

PixelPest wrote:Why would you need to see the score on the world map? Just of the level that you're on?
It only shows the high score for the level you are on so you do not need to go into it to see it.

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Highscore.lua

Postby PixelPest » Sun Dec 11, 2016 9:43 pm

MECHDRAGON777 wrote:
PixelPest wrote:Why would you need to see the score on the world map? Just of the level that you're on?
It only shows the high score for the level you are on so you do not need to go into it to see it.
Hm. Don't really see how it would make sense. Doesn't it really not matter what the highscore is in the level? What purpose does it have outside of the level if you reset the score each time?

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: Highscore.lua

Postby MECHDRAGON777 » Sun Dec 11, 2016 10:24 pm

PixelPest wrote:
MECHDRAGON777 wrote:
PixelPest wrote:Why would you need to see the score on the world map? Just of the level that you're on?
It only shows the high score for the level you are on so you do not need to go into it to see it.
Hm. Don't really see how it would make sense. Doesn't it really not matter what the highscore is in the level? What purpose does it have outside of the level if you reset the score each time?
For people who want to aim for the highest score in a level they can get.

Snessy the duck
Mouser
Mouser
Posts: 2699
Joined: Sat Sep 20, 2014 6:04 am

Re: Highscore.lua

Postby Snessy the duck » Mon Dec 12, 2016 12:11 pm

I think what Mechdragon is saying is that levels should display their high score along with the level name, which would actually be a neat concept!

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Highscore.lua

Postby PixelPest » Mon Dec 12, 2016 12:28 pm

Snessy the duck wrote:I think what Mechdragon is saying is that levels should display their high score along with the level name, which would actually be a neat concept!
No. I'm pretty sure he's talking about viewing level highscores via the world map when you're over a level

Snessy the duck
Mouser
Mouser
Posts: 2699
Joined: Sat Sep 20, 2014 6:04 am

Re: Highscore.lua

Postby Snessy the duck » Mon Dec 12, 2016 12:34 pm

PixelPest wrote:
Snessy the duck wrote:I think what Mechdragon is saying is that levels should display their high score along with the level name, which would actually be a neat concept!
No. I'm pretty sure he's talking about viewing level highscores via the world map when you're over a level
That was also what I meant, sorry if I wasn't specific enough!

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Highscore.lua

Postby PixelPest » Mon Dec 12, 2016 12:50 pm

Snessy the duck wrote:
PixelPest wrote:
Snessy the duck wrote:I think what Mechdragon is saying is that levels should display their high score along with the level name, which would actually be a neat concept!
No. I'm pretty sure he's talking about viewing level highscores via the world map when you're over a level
That was also what I meant, sorry if I wasn't specific enough!
I okay. I thought you meant in the level


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari