An easy way to check total score?

Started by xStaH, Thu 17/05/2007 05:41:43

Previous topic - Next topic

xStaH

Hey guys,

Is there an easy way to see how many actual points are in the game? I don't mean how many points I've SAID are in the game, but how many points I've possibly distributed with the GiveScore () function.  I was sloppy and didn't keep track of how many points were actually possible, and I'd hate to go manually look back through all the code.

Dan_N

Write @SCORE@ in a label...

It's in the manual, please recheck it :).

Gilbert

Dan, I think it's not what he's looking for, but let's see...

You can check the "maximum" score you set in the editor via the variable game.total_score. But I think that's not you want, from my understanding of your post, you want to check the real total score, that is, the final score if all the scoring actions are done in the game. Unfortunately, there is no easy way to do this, because it is the one who is making the game who decide how to assign the scores, which can be a very complicated matter, so there's no universal way of checking this. For example, you can let an action continue to give scores if the player does it repeatedly, you may also pass a variable as the score to GiveScore(), you may even compute the score using a formula (e.g. GiveScore((money*3)+7) )..., etc. so there's no easy way to check, the game creator has to plan his own game's score and calculate the total himself (if he needs to).


xStaH

Gilbot, you are correct, that is what I'm looking for.   And that is the respone I feared.  Haha, looks like I'll have to keep better tabs from here on out.  Thanks

Oh, and Dan_N, I did know about the @SCORE@, not what I was looking for though.  Thanks guys.

Dan_N

Sorry for the misunderstanding...

SMF spam blocked by CleanTalk