Hello Guest

# how to put a roll counter for each number separately

• 1 Replies
• 709 Views

#### dimon121

• 7
• +0/-0
##### how to put a roll counter for each number separately
« on: September 11, 2018, 04:37:01 am »
Code: [Select]
`chance = 98.99bethigh = Truebasebet = 0.00000300nextbet = basebetcount = 0function dobet()  nextbet = basebet  count = count + 1  if lastBet.Roll < 0.5 or lastBet.Roll > 99.49 then    count = 0  end  if count >= 500 then    Stop()    nextbet = 0  endend`

How to make the counter reset only for the number that did not fall into the conditions, and for another number continued to be considered

#### Seuntjie

• 138
• +0/-1
##### Re: how to put a roll counter for each number separately
« Reply #1 on: September 19, 2018, 07:41:30 am »
If I understand correctly, you want to track how many bets have been above 99.49 and separately track how many rolls have been below 05.?

Talk through what you want out loud. You want to track how many rolls have been above 99.49. So you need a counter. You need to identify when it's above 99.49 and reset it, otherwise increase the count.
You want to track how many rolls have been below 0.5. You need a counter for that as well (A separate one). You need to identify when it's below 0.5 and reset it, otherwise increase the count.

Try to do it on your own and let us know what you tried and how it worked.