Hello Guest

how to put a roll counter for each number separately

  • 1 Replies
  • 709 Views
*

dimon121

  • **
  • 7
  • +0/-0
    • View Profile
how to put a roll counter for each number separately
« on: September 11, 2018, 04:37:01 am »
Code: [Select]
chance = 98.99
bethigh = True
basebet = 0.00000300
nextbet = basebet

count = 0

function 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
  end

end


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
    • View Profile
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.