The Daily Click ::. Forums ::. Klik Coding Help ::. Lowscore Table
 

Post Reply  Post Oekaki 
 

Posted By Message

SyKo



Registered
  21/10/2005
Points
  251
20th July, 2008 at 03:14:42 -

Okay, im in the middle of a game that adapts a lowest score wins system. Kinda like golf or whatever. Anywho, at the end of the game I want a "low"scores table that saves the players lowest scores rather than the highest.
I've had a fiddle with MMF and can't find anything.
By the by I'm on MMF 1.5

If anyone can help that would be lavely!

 
Everyone here just seems to click!

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
20th July, 2008 at 03:17:07 -

Global values.

Every time you get a score, if it's less than the one currently stored in the global value, store the new value.

I.e a person has a current score of 25

On attempt number 2, they get 27

27 > 25 so dont store it

on attempt 3 then get 24

24< 25, so store it.

if they get the same, it can be ignored.

 
My signature is never too big!!!

SyKo



Registered
  21/10/2005
Points
  251
20th July, 2008 at 05:23:46 -

So i pretty much have to code my own highscores table from scratch?? noway of using the lovely preset one but like... reverse it or something?

Image Edited by the Author.

 
Everyone here just seems to click!

Clubsoft

Administrator
Weeeeeeee

Registered
  02/12/2001
Points
  253

Acoders MemberHas Donated, Thank You!May contain nutsVIP Member360 OwnerI'm an alien!Code Monkey
20th July, 2008 at 11:49:24 -

Pretty much, if you want to do it properly

Only other way, would be pretty hacky and ugly, which would be to set the players score to some obscenely high number, and subtract their actual score from that number, say start with 100,000, if a player scores 5, they'd have a score of 99,995, if a player scores 1 (Lower), they'd have a score of 99,999 (which would be at the top of the high scores), but thats not really the best of options

 
.: ImageApocalyptic Coders - www.acoders.com :.
   

Post Reply



 



Advertisement

Worth A Click