Jump to content



2

Question about checking the current score . . .


3 replies to this topic

#1 disjaukifa OFFLINE  

disjaukifa

    River Patroller

  • 2,088 posts
  • Berzerker In Training
  • Location:Southwest Virginia

Posted Wed Oct 5, 2011 7:33 PM

Hey Guys,

I know you can check score like this

if sc1 = $00 && sc2 = $00 && sc3  = $00 then ...

But can I check the score using a decimal number instead of a hexadecimal number?

Thanks

#2 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 20,923 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Wed Oct 5, 2011 7:46 PM

Have you read this yet:

What is a BCD Compliant Number?

Edited by Random Terrain, Wed Oct 5, 2011 7:46 PM.


#3 disjaukifa OFFLINE  

disjaukifa

    River Patroller

  • 2,088 posts
  • Berzerker In Training
  • Location:Southwest Virginia

Posted Wed Oct 5, 2011 7:55 PM

Actually I did, but what I didn't see was if I could take a variable lets say a which has a value of 35

a = 35

and then do this

if sc1 = $00 && sc2 = $00 && sc3  > $00 + a  then ...

*UPDATE* That seems to be working. I tried that earlier tonight and I my score was still rolling backwards, I must have forgotten the "$" on the 00 when I tried it earlier.

Hey Random do you know an easy way tell check to see if you score as rolled to a million and keep track of it?

Edited by disjaukifa, Wed Oct 5, 2011 8:04 PM.


#4 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 20,923 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Wed Oct 5, 2011 9:24 PM

View Postdisjaukifa, on Wed Oct 5, 2011 7:55 PM, said:

Hey Random do you know an easy way tell check to see if you score as rolled to a million and keep track of it?
I bet you could adapt this:

http://www.atariage....-next-thousand/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users