GetGameScore function? [SOLVED]

Started by aussie, Sat 08/01/2005 00:56:06

Previous topic - Next topic

aussie

Perhaps a bit of a silly one here.

I'd like the player to get one or another ending depending on the final game score. For instance, if the score is:
$
<50 get the "Total Loser" ending.
50-75 get the "Keep Trying" ending.
75-100 get the "You Champion" ending.

I suppose I need to use the "game.score" global var, which I've found in the manual. However, I'm not sure about how to  enter the statement. Would it be just...

if ((game.score) > 75))

{
//"You Champion"
}

and so forth?

Cheers.
It's not the size of the dog in the fight. It's the size of the fight in the dog.

http://www.freewebs.com/aussiesoft/


Goot

Can't you just do:
if(game.score > 75){
without all the extra parenthisis?


aussie

Thanks a lot, I see I was right to post in the beginners forum.  ;D
It's not the size of the dog in the fight. It's the size of the fight in the dog.

http://www.freewebs.com/aussiesoft/

TerranRich

Status: Trying to come up with some ideas...

SMF spam blocked by CleanTalk